admin管理员组文章数量:1419656
I want to set default taxonomy hierarchical terms for NEW posts or CPTs. That is, I want the term's checkbox to default to checked - visually - in the post-new.php editor before it's saved or assigned an ID.I'm trying to use JS, but I'd prefer a PHP filter. Any clues?
I don't want to hook into publish or save, I want to have the check box pre-checked when post-new.php opens.
I'm trying to use JS, but I'd prefer a PHP filter. Any clues?
wp_insert_term('Publish to Parler', 'parler',
array(
'slug' => 'publish',
'description' => 'Publish a post to the Parler platform.',
)
);
本文标签: filtersSet default terms for new postsCPTs
版权声明:本文标题:filters - Set default terms for new postsCPTs 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745310285a2652898.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论