Description #

Check if current page is question page.

Changelog #

4.1.0Also check and return true if singular question.

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. Required fields are marked *

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

Add your comment