Yoast\WP\SEO\Helpers
Meta_Helper::delete()
Deletes a meta value for a post.
Метод класса: Meta_Helper{}
Хуков нет.
Возвращает
true|false
. Whether the delete was successful or not.
Использование
$Meta_Helper = new Meta_Helper(); $Meta_Helper->delete( $key, $post_id );
- $key(строка) (обязательный)
- The internal key of the meta value to change (without prefix).
- $post_id(int) (обязательный)
- The ID of the post to delete the meta for.
Код Meta_Helper::delete() Meta Helper::delete Yoast 22.4
public function delete( $key, $post_id ) { return WPSEO_Meta::delete( $key, $post_id ); }