• Resolved mrfm

    (@mrfm)


    Hi, is there a way to make the default status published instead of pending?

    Alternatively, is there a way to bulk edit the status of many requests from pending to published? It seems that I have to approve each one individually which is quite time consuming.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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 4 years, 1 month 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";
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Default published status or bulk edit status?’ is closed to new replies.