WordPress at Your Fingertips
filter is not described

pre_update_site_option_(option) filter-hook . WP 3.0.0

Filters a specific network option before its value is updated.

The dynamic portion of the hook name, $option, refers to the option name.


add_filter( 'pre_update_site_option_(option)', 'filter_function_name_5095', 10, 4 );
function filter_function_name_5095( $value, $old_value, $option, $network_id ){
	// filter...

	return $value;
New value of the network option.
Old value of the network option.
Option name.
ID of the network.


Since 3.0.0 Introduced.
Since 2.9.0 As 'pre_update_site_option_' . $key
Since 4.4.0 The $option parameter was added.
Since 4.7.0 The $network_id parameter was added.

Where the hook is called

wp-includes/option.php 1743
$value = apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option, $network_id );

Where in WP core the hook is used WordPress

Usage not found.