AnsPress_Common_Pages::register_common_pages()
Description #
Register all pages of AnsPress
Source #
File: includes/common-pages.php
public static function register_common_pages() { ap_register_page( 'base', ap_opt( 'base_page_title' ), array( __CLASS__, 'base_page' ) ); ap_register_page( 'question', __( 'Question', 'anspress-question-answer' ), array( __CLASS__, 'question_page' ), false ); ap_register_page( 'ask', __( 'Ask a Question', 'anspress-question-answer' ), array( __CLASS__, 'ask_page' ) ); ap_register_page( 'search', __( 'Search', 'anspress-question-answer' ), array( __CLASS__, 'search_page' ), false ); ap_register_page( 'edit', __( 'Edit Answer', 'anspress-question-answer' ), array( __CLASS__, 'edit_page' ), false ); ap_register_page( 'activities', __( 'Activities', 'anspress-question-answer' ), array( __CLASS__, 'activities_page' ), false ); }
Expand full source code Collapse full source code View on GitHub: includes/common-pages.php:23
Add your comment