Simple Feature Requests
Get Plugin
Search…
Welcome
Getting Started
Installation
Activate Licence
Setup
Shortcodes
Configuration
Allow Users to Remove Their Own Votes
Enable/Disable Comments
Change Request Title Tags
Administration
Bulk Actions
Pro Features
Bulk Edit Statuses
Enable Notifications
Setup Categories
Limit Votes
Image Uploads
Custom Statuses
Multiple Boards
Custom Labels
Enable & Disable Filters
Customizing
Email Notifications Signature
Change the Default Post Status
Troubleshooting
Error 404 - Page Not Found
Known Plugin Conflicts
Advanced
Useful Filters
Powered By
GitBook
Change the Default Post Status
By default, requests are published as "pending". If you want to automatically publish them, you can do so with the following code.
/**
* Change default request status to "publish".
*
* @return string
*/
function jck_sfr_change_default_post_status() {
return 'publish';
}
add_filter( 'jck_sfr_get_default_post_status', 'jck_sfr_change_default_post_status', 10 );
Add the code to the end of your theme or child theme's
functions.php
file.
Customizing - Previous
Email Notifications Signature
Next - Troubleshooting
Error 404 - Page Not Found
Last modified
2yr ago
Copy link