最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Override Wordpress POST REST API

programmeradmin1浏览0评论

I use the REST API to create post and taxonomy remotely in a Wordpress website.

It works perfectly for classical fields but i need to send some custom fields, and there are not interpreted by Wordpress.

  1. In post a need to fill up the fields _yoast_wpseo_primary_post (that is a fields added by yoast) and force to set up a translation post (WPML)
  2. In taxonomy i need to fill up fields added by ACF (it works for post, but not for taxonomy)

I'm wondering if it's not possible to override Worpdress to be able to manage any fields i want ? Is there a function or hook to do this when i post via API ? (i'm a beginner with API in wordpress)

Thanks

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论