AnsPress_Theme::single_question_comment_disable( boolean $ret )

Description #

Return comment open as false in single question page. So that theme won’t render comments again.

Parameters #

  • $ret
    boolean (Required) Return.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: includes/class-theme.php

	public static function single_question_comment_disable( $ret ) {
		global $question_rendered;

		if ( true === $question_rendered && is_singular( 'question' ) ) {
			return false;
		}

		return $ret;
	}

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