delete_{$meta_type}_metadata_by_mid

delete_{$meta_type}_metadata_by_mid

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('delete_{$meta_type}_metadata_by_mid') is found 1 times:

  • /wp-includes/meta.php line 1026
    	 *
    	 * @param null|bool $delete  Whether to allow metadata deletion of the given type.
    	 * @param int       $meta_id Meta ID.
    	 */
    	$check = apply_filters( "delete_{$meta_type}_metadata_by_mid", null, $meta_id );
    	if ( null !== $check ) {
    		return (bool) $check;
    	}
    
    	// Fetch the meta and go on if it's found.
    	$meta = get_metadata_by_mid( $meta_type, $meta_id );