如果插件只注册CPT,请删除它并构建自己的CPT。
如果插件做了其他需要保留在站点上的事情,您可以注销帖子类型,然后用自己的插件重新注册。您只需记住,更改设置可能会影响原始插件的工作方式-它可能依赖于CPT中的某些选项。
无论如何,复制插件中注册CPT的部分,然后只调整所需的选项。确保将下面的“post\\U type”替换为实际的CPT名称。
<?php
// Optionally unregister the post type to clear all settings
// (this does not delete any of the posts from the database)
unregister_post_type( \'post_type\' );
// Now, re-register it as in the plugin, but with
// the adjusted settings you need
$args = array(
// has_archive will provide an archive page
\'has_archive\' => true,
// \'supports\' will enable an Editor for single pages
\'supports\' => array(\'title\', \'editor\', \'author\', \'revisions\', \'page-attributes\'),
// \'public\' makes it available in a number of places like menus
\'public\' => true
);
register_post_type( \'post_type\', $args );
?>