delete_{$meta_type}_metadata

delete_{$meta_type}_metadata

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

See hook in core

Displaying hooks found in version: wordpress-6.7

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

  • /wp-includes/meta.php line 428
    	 * @param bool      $delete_all Whether to delete the matching metadata entries
    	 *                              for all objects, ignoring the specified $object_id.
    	 *                              Default false.
    	 */
    	$check = apply_filters( "delete_{$meta_type}_metadata", null, $object_id, $meta_key, $meta_value, $delete_all );
    	if ( null !== $check ) {
    		return (bool) $check;
    	}
    
    	$_meta_value = $meta_value;
    	$meta_value  = maybe_serialize( $meta_value );