我想在WordPress插件中以编程方式更新Yoast Focus Keyword字段 . 但不幸的是,我无法在屏幕上看到所需的结果 .

你能帮帮我吗?

这是我正在使用的代码

$updated_title = update_post_meta($post_id, '_yoast_wpseo_focuskw', $metatitle);

谢谢大家的帮助 .