AnsPress_Comment_Hooks::comments_template( string $template )

Description #

Override comments template for single question page.

This will prevent post comments below single question.

Parameters #

  • $template
    string (Required) Template.

Changelog #


Source #

File: includes/comments.php

	public static function comments_template( $template ) {
		if ( is_singular( 'question' ) || is_anspress() ) {
			$template = ap_get_theme_location( 'post-comments.php' );

		return $template;

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