0

我有一个带有几种帖子类型的 WordPress 主题,主题在 redux 框架上运行。

我想从子主题中的functions.php文件中添加一个特定的帖子类型的自定义字段,而无需为其编辑核心文件/安装插件。

我该怎么做?寻找类似的东西:

if(is_post_type("some_post_type")&& is_admin_single_editor()){
     // Add custom field to edit screen
}

谢谢

4

0 回答 0