I want to make the Number of Columns in screen options for a custom post type is selected to 1 by default, instead of 2, which means full screen. How this can be done?


Ok, so this is how I did it. This hook into the admin head, find the screen options part and set the default checked radio button to 1, which mean full screen.

Just found the answer from here and give it a little modification:

        add_action( 'admin_head', 'wpse1152474_post_editor_columns');

        function wpse1152474_post_editor_columns() {
        global $pagenow, $typenow;
        if ($pagenow == 'edit.php' || $pagenow == 'post.php' 
           || $pagenow == 'post-new.php'
           && $typenow=='your_targeted_post_type') {
                    'max'     => 2,
                    'default' => 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.