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

plugin development - How to determine primary editor for a pagepost

programmeradmin1浏览0评论

We are working on a plugin that is trying to hook into the WordPress Classic Editor, but only want to load the code if the Classic Editor itself is going to be used on the page/post for editing.

We don't want to load the code on the page/post editor page if it's one that a page builder like Elementor is set up on and the Classic Editor wont appear anyway. While we know how to check to see if a plugin is installed and active or not, since page builders can be active on the website but not being used on a specific page/post we we're looking for a way to check for that so the code will only run if the Classic Editor is actually going to show up.

发布评论

评论列表(0)

  1. 暂无评论