delete_site_option_(option) хук-событиеWP 3.0.0

Fires after a specific network option has been deleted.

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

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

add_action( 'delete_site_option_(option)', 'wp_kama_delete_site_option_action', 10, 2 );

/**
 * Function for `delete_site_option_(option)` action-hook.
 * 
 * @param string $option     Name of the network option.
 * @param int    $network_id ID of the network.
 *
 * @return void
 */
function wp_kama_delete_site_option_action( $option, $network_id ){

	// action...
}
$option(строка)
Name of the network option.
$network_id(int)
ID of the network.

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

С версии 3.0.0 Введена.
С версии 2.9.0 As "delete_site_option_{$key}"
С версии 4.7.0 The $network_id parameter was added.

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

delete_network_option()
delete_site_option_(option)
wp-includes/option.php 1718
do_action( "delete_site_option_{$option}", $option, $network_id );

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

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