delete_meta() public method

public delete_meta ( $id = false, $key = false )
Ejemplo n.º 1
0
function delete_rtmedia_meta($id = false, $key = false)
{
    if (apply_filters('rtmedia_use_legacy_meta_function', false)) {
        $rtmediameta = new RTMediaMeta();
        return $rtmediameta->delete_meta($id, $key);
    } else {
        // use WP's default get_metadata function replace column name from "media_id" to "id" in query
        add_filter('query', 'rtm_filter_metaid_column_name');
        $meta = delete_metadata('media', $id, $key);
        remove_filter('query', 'rtm_filter_metaid_column_name');
        return $meta;
    }
}
function delete_rtmedia_meta($id = false, $key = false)
{
    $rtmediameta = new RTMediaMeta();
    return $rtmediameta->delete_meta($id, $key);
}