AnsPress_Common_Pages::ask_page()

Description #

Output ask page template

Source #

File: includes/common-pages.php

	public static function ask_page() {
		$post_id = ap_sanitize_unslash( 'id', 'r', false );

		if ( $post_id && ! anspress_verify_nonce( 'edit-post-' . $post_id ) ) {
			esc_attr_e( 'Something went wrong, please try again', 'anspress-question-answer' );
			return;
		}

		include ap_get_theme_location( 'ask.php' );

		/**
		 * Action called after ask page (shortcode) is rendered.
		 *
		 * @since 4.1.8
		 */
		do_action( 'ap_after_ask_page' );
	}

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