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 #
- $retboolean (Required) Return.
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; }
Expand full source code Collapse full source code View on GitHub: includes/class-theme.php:241
Add your comment