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' ); }
Expand full source code Collapse full source code View on GitHub: includes/common-pages.php:153
Add your comment