is_question()

Description #

Check if current page is question page.

Changelog #

VersionDescription
4.1.0Also check and return true if singular question.
0.0.1Introduced.

Source #

File: includes/functions.php

function is_question() {
	if ( is_singular( 'question' ) ) {
		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