En este ejemplo, puede establecer fácilmente en qué tipos de publicación desea ocultar las opciones de publicación, el ejemplo las oculta para el tipo de tipo de macetas integradas pagey el tipo de publicación personalizada cpt_portfolio.
/**
* Hides with CSS the publishing options for the types page and cpt_portfolio
*/
function wpse_36118_hide_minor_publishing() {
$screen = get_current_screen();
if( in_array( $screen->id, array( 'page', 'cpt_portfolio' ) ) ) {
echo '<style>#minor-publishing { display: none; }</style>';
}
}
// Hook to admin_head for the CSS to be applied earlier
add_action( 'admin_head', 'wpse_36118_hide_minor_publishing' );
Actualización importante
También te sugiero que fuerces un estado de publicación de "Publicado" para evitar guardar publicaciones como borradores:
/**
* Sets the post status to published
*/
function wpse_36118_force_published( $post ) {
if( 'trash' !== $post[ 'post_status' ] ) { /* We still want to use the trash */
if( in_array( $post[ 'post_type' ], array( 'page', 'cpt_portfolio' ) ) ) {
$post['post_status'] = 'publish';
}
return $post;
}
}
// Hook to wp_insert_post_data
add_filter( 'wp_insert_post_data', 'wpse_36118_force_published' );