Yoast\WP\SEO\Helpers

Meta_Helper::delete()publicYoast 1.0

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() Yoast 19.2

public function delete( $key, $post_id ) {
	return WPSEO_Meta::delete( $key, $post_id );
}