WordPress at a glance
filter is not described

pre_add_site_option_(option) filter-hook . WP 3.0.0

Filters the value of a specific network option before it is added.

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


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

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

Список изменений

С версии 3.0.0 Введена.
С версии 2.9.0 As 'pre_add_site_option_' . $key
С версии 4.4.0 The $option parameter was added.
С версии 4.7.0 The $network_id parameter was added.

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

wp-includes/option.php 1475
$value = apply_filters( "pre_add_site_option_{$option}", $value, $option, $network_id );

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

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