delete_option

delete_option

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('delete_option') is found 1 times:

  • /wp-includes/option.php line 1219
    	 * @since 2.9.0
    	 *
    	 * @param string $option Name of the option to delete.
    	 */
    	do_action( 'delete_option', $option );
    
    	$result = $wpdb->delete( $wpdb->options, array( 'option_name' => $option ) );
    
    	if ( ! wp_installing() ) {
    		if ( in_array( $row->autoload, wp_autoload_values_to_autoload(), true ) ) {
    			$alloptions = wp_load_alloptions( true );
    

See this hook used in plugins: