public function unset($post_id, string $key)
    {
        $post_id = (int) ($post_id ?? get_the_ID());

        if (!$post_id || !$key) {
            return; // Not possible.
        }
        delete_post_meta($post_id, $this->key($key));
    }
public function unset($post_id, string $key)
    {
        $post_id = (int) ($post_id ?? get_the_ID());

        if (!$post_id || !$key) {
            return; // Not possible.
        }
        delete_post_meta($post_id, $this->key($key));
    }
public function unset ( $ post_id , string $ key ) { $ post_id = ( int ) ( $ post_id ?? get_the_ID ( ) ) ; if ( ! $ post_id || ! $ key ) { return ; // Not possible. } delete_post_meta ( $ post_id , $ this -> key ( $ key ) ) ; }
Unset meta values.

@since 160723 Post meta utils.

@param string|int|null $post_id Post ID; `null` = current.
@param string          $key     Meta key (unprefixed).
Unset meta values .