Set WordPress Posts To Private By Default

Paulund is full of premium tutorials and support to help with your development

Sign up to get full access to all tutorials.

Get Started

Login to your account

wplogo

The following code snippet will allow you to set all your posts to private as default. We do this by using the action post_submitbox_misc_actions and inserting jQuery into the page to change the selected visibility setting. First this will check to see what the current post status is. If the post status is publish then we can set the visibility status to publish. Then we check to see if the post password is not empty, if the password is set we then set the visibility to password. We . . .

Get Started

Other Tutorials In Admin Area

Set WordPress Posts To Private By Default


Change Sortable Columns In WordPress


FREE

Taxonomy Page Parent Menu Collapsed


FREE

Display A Category Checklist In WordPress


FREE

Login To WordPress With Email Address


FREE

Improving WordPress Shortcode Usability


FREE

Register New Post Statuses In WordPress


FREE

Add Custom User Fields To User Profile Page


FREE

Modify User Contact Fields In WordPress


FREE

WordPress Menu Item Icons


FREE

Set Default Visibility To Password Protected


Add Custom User Profile Fields In WordPress


FREE

Change Default WordPress Emails


How To Create WordPress Admin Tables Using WP_List_Table


FREE

WordPress Multisite With Nested Folder Paths


FREE

Setup A WordPress Multisite


FREE

Multiple Users With WordPress Multisite


FREE

Remove Column On Pages Table In WordPress


Add Custom Post Meta Data To Post List Table


FREE

Add A New Color Picker To WordPress


FREE

Adding A Help Tab To WordPress


Create Your Own WordPress Login Page


FREE

Set Remember Me To Be Always Checked


FREE

Enable Additional Buttons On Visual Editor


FREE

Add Colour Picker To WordPress Admin


FREE

Increase WordPress Memory Limit


FREE

Set Minimum Word Count On Posts


FREE

Change Posts Labels In WordPress


Add New Menu Items To WordPress Admin


FREE

Create Favourite Tweets WordPress Dashboard Widget


FREE

How To Remove WordPress Post Meta Boxes


FREE

How To Customise The WordPress Login Page


FREE

Automatically Set Post Featured Image


FREE

Change The Enter Title Text For Custom Post Types


FREE

How To Check If In WordPress Admin Area


FREE

Change Footer Text WordPress Admin Area


FREE

How To Remove WordPress Dashboard Widgets