is_post_waiting_moderation( boolean|integer $post_id = false )

Description #

Check if post is waiting moderation.

Parameters #

  • $post_id
    boolean | integer (Optional) question or answer ID. Default value: false

Source #

File: includes/theme.php

function is_post_waiting_moderation( $post_id = false ) {
	if ( get_post_status( $post_id ) === 'moderate' ) {
		return true;
	}

	return false;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment