WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

option_(option) хук-фильтр . WP 1.0

This filter is documented in wp-includes/option.php

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

Использование

add_filter( 'option_(option)', 'filter_function_name_3530', 10, 2 );
function filter_function_name_3530( $value, $option_name ){
	// filter...

	return $value;
}
$value
-
$option_name
-

Где вызывается хук

WP_Customize_Widgets::capture_filter_pre_get_option()
option_(option)
get_option()
option_(option)
wp-includes/class-wp-customize-widgets.php 2134
$value = apply_filters( 'option_' . $option_name, $value, $option_name );
wp-includes/option.php 225
return apply_filters( "option_{$option}", maybe_unserialize( $value ), $option );

Где используется хук в ядре WordPress

wp-includes/class-wp-customize-setting.php 382
add_filter( "option_{$id_base}", $multidimensional_filter );
wp-includes/class-wp-customize-widgets.php 281
add_filter( 'option_sidebars_widgets', array( $this, 'filter_option_sidebars_widgets_for_theme_switch' ), 1 );
wp-includes/customize/class-wp-customize-nav-menu-setting.php 224
add_filter( 'option_nav_menu_options', array( $this, 'filter_nav_menu_options' ) );
wp-includes/default-filters.php 268
add_filter( 'option_ping_sites', 'privacy_ping_filter' );
wp-includes/default-filters.php 269
add_filter( 'option_blog_charset', '_wp_specialchars' ); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop.
wp-includes/default-filters.php 270
add_filter( 'option_blog_charset', '_canonical_charset' );
wp-includes/default-filters.php 271
add_filter( 'option_home', '_config_wp_home' );
wp-includes/default-filters.php 272
add_filter( 'option_siteurl', '_config_wp_siteurl' );
wp-includes/default-filters.php 282
add_filter( 'option_tag_base', '_wp_filter_taxonomy_base' );
wp-includes/default-filters.php 283
add_filter( 'option_category_base', '_wp_filter_taxonomy_base' );
wp-includes/ms-default-filters.php 116
remove_filter( 'option_siteurl', '_config_wp_siteurl' );
wp-includes/ms-default-filters.php 117
remove_filter( 'option_home', '_config_wp_home' );
wp-includes/ms-default-filters.php 20
add_filter( 'option_users_can_register', 'users_can_register_signup_filter' );