delete_option
Fires immediately before an option is deleted.
Использование
add_action( 'delete_option', 'wp_kama_delete_option_action' ); /** * Function for `delete_option` action-hook. * * @param string $option Name of the option to delete. * * @return void */ function wp_kama_delete_option_action( $option ){ // action... }
- $option(строка)
- Name of the option to delete.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
wp-includes/option.php 1205
do_action( 'delete_option', $option );