Hey,
Bulk editing statuses can be done with Pro: https://docs.simplefeaturerequests.com/pro-features/bulk-edit-statuses
but you could also set the default status using a code snippet on the jck_sfr_get_default_post_status filter. it should just return a string with the status (i.e. publish)
Thread Starter
mrfm
(@mrfm)
Thank you for the super quick and helpful reply!
No problem – appreciate a review when you’ve got things set up!
Thread Starter
mrfm
(@mrfm)
Hi James, I tried the code below but it does not work. Am I doing something wrong?
add_action( 'jck_sfr_get_default_post_status', 'jck_sfr_set_default_status' );
/**
* Set the default status for feature requests
*/
function jck_sfr_set_default_status() {
$status = "publish";
return status;
}
Thread Starter
mrfm
(@mrfm)
Ah I had a typo – sorry. I was missing the $ on the return variable. Now it’s working fine! 🙂
Here’s the working code:
add_action( 'jck_sfr_get_default_post_status', 'jck_sfr_set_default_status' );
/**
* Set the default status for feature requests
*/
function jck_sfr_set_default_status() {
$status = "publish";
return $status;
}
-
This reply was modified 5 years, 7 months ago by
mrfm.
Yep, good catch! You can also just do this:
add_action( 'jck_sfr_get_default_post_status', 'jck_sfr_set_default_status' );
/**
* Set the default status for feature requests
*/
function jck_sfr_set_default_status() {
return "publish";
}