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.
1
/**
2
* Change default request status to "publish".
3
*
4
* @return string
5
*/
6
function jck_sfr_change_default_post_status() {
7
return 'publish';
8
}
9
10
add_filter( 'jck_sfr_get_default_post_status', 'jck_sfr_change_default_post_status', 10 );
Copied!
Add the code to the end of your theme or child theme's functions.php file.
Last modified 1yr ago
Copy link