AnsPress_Common_Pages::question_page()
Description #
Output single question page.
Changelog #
Source #
File: includes/common-pages.php
public static function question_page() { global $question_rendered, $post; $question_rendered = false; $msg = self::question_permission_msg( $post ); // Check if user have permission. if ( false !== $msg ) { status_header( 403 ); echo '<div class="ap-no-permission">' . wp_kses_post( $msg ) . '</div>'; $question_rendered = true; return; } if ( have_posts() ) { while ( have_posts() ) : the_post(); include ap_get_theme_location( 'single-question.php' ); endwhile; } /** * An action triggered after rendering single question page. * * @since 0.0.1 */ do_action( 'ap_after_question' ); $question_rendered = true; }
Expand full source code Collapse full source code View on GitHub: includes/common-pages.php:119
Add your comment