delete_option

delete_option

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

See hook in core

Displaying hooks found in version: wordpress-6.5.5

do_action('delete_option') is found 1 times:

  • /wp-includes/option.php line 1091
    	 * @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 ( 'yes' === $row->autoload ) {
    			$alloptions = wp_load_alloptions( true );
    

See this hook used in plugins: