Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pipdig

    (@pipdig)

    Hi Hudson, sorry for the slow reply, I didn’t receive a notification about your post for some reason.

    I think instead of adding a filter here, we’ll change the conditional logic to block drafts only. This was why the logic was created in the first place, but admittedly I didn’t consider locked/private posts. I’ll add this to the next update now and push this live for you 🙂

    Phil

    Plugin Author pipdig

    (@pipdig)

    I’ve pushed the update now, so comments are only disabled on a ‘draft’ or ‘trash’ post status.

    I also decided to add the filter any way, just in case anyone needs it. So, you can change the array of statuses via a function such as:

    function prefix_disable_pipdisqus_comments() {
    	// disable Disqus comments on the following post statuses
    	return array('draft', 'trash', 'private');
    }
    add_filter( 'pipdisqus_post_statuses', 'prefix_disable_pipdisqus_comments' );
    Thread Starter Hudson Atwell

    (@hudson-atwell)

    Thank you so much Phil I’ll get it updated asap. Thanks again I appreciate it. Big help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post status filter request’ is closed to new replies.