我还没有测试过,但像这样的测试应该可以:
function wpse70000_add_author_metabox_to_cpt_book( $args, $post_type ) {
if (\'product\' === $post_type ){
unset($args[\'editor\'] ); // set the \'supports\' array
}
return $args;
}
add_filter( \'register_post_type_args\', \'wpse70000_add_author_metabox_to_cpt_book\', 10, 2 );