ap_main_pages()
Description #
All pages required of AnsPress.
Source #
File: includes/functions.php
function ap_main_pages() { $pages = array( 'base_page' => array( 'label' => __( 'Archives page', 'anspress-question-answer' ), 'desc' => __( 'Page used to display question archive (list). Sometimes this page is used for displaying other subpages of AnsPress.<br/>This page is also referred as <b>Base Page</b> in AnsPress documentations and support forum.', 'anspress-question-answer' ), 'post_title' => __( 'Questions', 'anspress-question-answer' ), 'post_name' => 'questions', ), 'ask_page' => array( 'label' => __( 'Ask page', 'anspress-question-answer' ), 'desc' => __( 'Page used to display ask form.', 'anspress-question-answer' ), 'post_title' => __( 'Ask a question', 'anspress-question-answer' ), 'post_name' => 'ask', ), 'user_page' => array( 'label' => __( 'User page', 'anspress-question-answer' ), 'desc' => __( 'Page used to display user profile.', 'anspress-question-answer' ), 'post_title' => __( 'Profile', 'anspress-question-answer' ), 'post_name' => 'profile', ), 'categories_page' => array( 'label' => __( 'Categories page', 'anspress-question-answer' ), 'desc' => __( 'Page used to display question categories. NOTE: Categories addon must be enabled to render this page.', 'anspress-question-answer' ), 'post_title' => __( 'Categories', 'anspress-question-answer' ), 'post_name' => 'categories', ), 'tags_page' => array( 'label' => __( 'Tags page', 'anspress-question-answer' ), 'desc' => __( 'Page used to display question tags. NOTE: Tags addon must be enabled to render this page.', 'anspress-question-answer' ), 'post_title' => __( 'Tags', 'anspress-question-answer' ), 'post_name' => 'tags', ), 'activities_page' => array( 'label' => __( 'Activities page', 'anspress-question-answer' ), 'desc' => __( 'Page used to display all anspress activities.', 'anspress-question-answer' ), 'post_title' => __( 'Activities', 'anspress-question-answer' ), 'post_name' => 'activities', ), ); /** * Hook for filtering main pages of AnsPress. Custom main pages * can be registered using this hook. * * @param array $pages Array of pages. * @since 4.1.5 */ return apply_filters( 'ap_main_pages', $pages ); }
Expand full source code Collapse full source code View on GitHub: includes/functions.php:2341
Add your comment