blog_option_(option) filter-hookWP 3.5.0

Filters a blog option value.

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

Usage

add_filter( 'blog_option_(option)', 'wp_kama_blog_option_filter', 10, 2 );

/**
 * Function for `blog_option_(option)` filter-hook.
 * 
 * @param string $value The option value.
 * @param int    $id    Blog ID.
 *
 * @return string
 */
function wp_kama_blog_option_filter( $value, $id ){

	// filter...
	return $value;
}
$value(string)
The option value.
$id(int)
Blog ID.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

get_blog_option()
blog_option_(option)
wp-includes/ms-blogs.php 377
return apply_filters( "blog_option_{$option}", $value, $id );

Where the hook is used in WordPress

Usage not found.