Simple Feature Requests
  • 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
On this page

Was this helpful?

  1. Customizing

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.

PreviousEmail Notifications SignatureNextError 404 - Page Not Found

Last updated 5 years ago

Was this helpful?