PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/helpers/meta-helper.php +12 -0 18.0 → trunk View file →
@@ -63,5 +63,17 @@
63 63 */
64 64 public function set_value( $key, $meta_value, $post_id ) {
65 65 return WPSEO_Meta::set_value( $key, $meta_value, $post_id );
66 66 }
67 +
68 + /**
69 + * Deletes a meta value for a post.
70 + *
71 + * @param string $key The internal key of the meta value to change (without prefix).
72 + * @param int $post_id The ID of the post to delete the meta for.
73 + *
74 + * @return bool Whether the delete was successful or not.
75 + */
76 + public function delete( $key, $post_id ) {
77 + return WPSEO_Meta::delete( $key, $post_id );
78 + }
67 79 }