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') {
add_screen_option(
'layout_columns',
array(
'max' => 2,
'default' => 1
)
);
}
}
Related Posts:
- Stop WordPress Wrapping Images In A “P” Tag
- Keyboard shortcut for updating a page or post?
- Customizing HTML Editor Quicktags button to open a dialog for choosing insert options
- Allow user to “edit_others_posts” to save only, not publish
- Let private posts stay in status “private” after edit through “editors”
- how to limit edit_form_after_title hook to page and post edit only?
- Listen to Post action
- How to create WP Editor using javascript
- How to add editor’s name to entry meta byline?
- Restrict access to post if it is currently being edited
- Change padding to text indent in “Increase indent” TinyMCE
- How can I allow editors to leave comments on posts that have not yet been published?
- Automatically added brs and paragraphs?
- How can I pass $post object to ‘save_post’ add_action?
- Change default screen option value for posts per page
- set role specific screen options in post summary page
- Custom function for “Submit for Review” hook
- add image map script to post
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- 2nd button row from WP Super Edit or TinyMCE Advanced doesn’t show to 2nd admin
- Strange problems when I try to insert HTML\XML code snippet in my posts
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- Visual / HTML tabs vanished on editor
- Getting a 404 error when clicking edit page
- WordPress version 3.8 – Preview button not working for editor
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Lost draft under all posts and drafts
- WP text styles not coming through to actual post
- WordPress.com post editor replacement
- Why can’t publish posts with too much text?
- Add simple field column to the posts screen
- how can display a post on home screen without images
- Keyboard shortcut for headings on safari
- any way to access variables from within post editor?
- Embedding Post Editor Into External Site
- Contributor edits published post and sends for review – post is made private?
- Display simple html code in post
- WordPress Screen Options, Help, Visual editor, Status, Visibility, Revisions, Published on and any toggled indicator don’t work for posts
- How to allow some visitors to edit inline specific post
- How to custom sort-out editing-panel fields?
- Stripping tag from elements in post
- Post thumbnail is not shown in wp-admin
- Turn a URL into an Attachment / Post ID
- Allow variable amount of comments before pagination
- How to get the number of posts in a selected category?
- Attach pdf file to custom post type
- HTML code in Custom field
- Count singular post views automatically
- Looping through posts per category gives same posts for each category
- how to hide specific post from google search
- Accessing $post variable from template part
- Programmatically inserting page breaks
- get_terms parent for current product only
- Redirection to taxonomy posts list after post submit.
- Frontend Post Excerpt field mapping
- How to get future ID for post which haven’t been created yet?
- How to pull blogposts using shortcodes
- Limit Gutenberg blocks available to users to choose from
- how to get posts ids inside pre_get_posts filter?
- Child_of not displaying all children posts.. via get_posts
- Append class to posts page
- Prevent additional top level categories but allow more children
- Error after upgrading WP from 4.0.6 -> 4.4.2: empty value in wp_post_types[‘post’]
- What’s the best way to render Visual Composer in posts, not pages?
- Call Web Services on post first publish
- Get Value of Post before
- Make a vertical dynamic list of posts in alphabetically order and in columns [closed]
- Display posts of specific category term
- Relative number of post in category
- How to save posts position on homepage after random function?
- How to embed custom HTML code with no plugins?
- Display in category ( taxonomy) a number of post that I want
- How to store array in usermeta in wordpress
- Setting limit to posts or page creation
- Can Permalink structure of %postname%/%post_id% improve performance
- post/page content
- Help on conditional statement to accompany wp_insert_post function please?
- How to automatically share posts on facebook?
- Merge get_comments & get_posts into a single query
- Is there a way to categorize a list posts all at once?
- Display “no post” message
- More Than 50K Categories and WordPress Admin Panel Stop Showing Categories and Posts
- Hiding the name of the user who is currently editing
- allow editor/author to publish others posts but not publish their own
- Why does media_handle_sideload upload to last month’s folder?
- Re-order Category Meta-data
- Slug collision between page, taxonomy and custom post type
- Populate a drop down list with post titles across a multisite network
- Random order of the 5 most popular posts
- How to change number of posts shown on homepage vs other pages?
- Displaying Results From Custom Taxonomy Query
- find posts with exactly 3/4 categories
- Custom filter on all post page (admin backend)
- Displaying only posts from a certain category on my custom page template
- How can I create a menu items from meta box based on users input
- WordPress strips some attributes for author posts
- get value from post to sidebar
- How to make “my posts” page
- How to have 2 posting pages on a blog
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields