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.2

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

  • /wp-includes/meta.php line 1026
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    *
     * @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 );