WordPress at Your Fingertips
filter is not described

site_option_(option) filter-hook . WP 3.0.0

Filters the value of an existing network option.

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


add_filter( 'site_option_(option)', 'filter_function_name_9246', 10, 3 );
function filter_function_name_9246( $value, $option, $network_id ){
	// filter...

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


Since 3.0.0 Introduced.
Since 2.9.0 As '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 1473
return apply_filters( "site_option_{$option}", $value, $option, $network_id );

Where in WP core the hook is used WordPress

wp-includes/ms-default-filters.php 21
add_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );
wp-includes/ms-functions.php 2426
remove_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );