Profile::options()
Description #
Register profile options
Source #
File: addons/profile/profile.php
public function options() { $opt = ap_opt(); $form = array( 'fields' => array( 'user_page_title_questions' => array( 'label' => __( 'Questions page title', 'anspress-question-answer' ), 'desc' => __( 'Custom title for user profile questions page', 'anspress-question-answer' ), 'value' => $opt['user_page_title_questions'], ), 'user_page_slug_questions' => array( 'label' => __( 'Questions page slug', 'anspress-question-answer' ), 'desc' => __( 'Custom slug for user profile questions page', 'anspress-question-answer' ), 'value' => $opt['user_page_slug_questions'], ), 'user_page_title_answers' => array( 'label' => __( 'Answers page title', 'anspress-question-answer' ), 'desc' => __( 'Custom title for user profile answers page', 'anspress-question-answer' ), 'value' => $opt['user_page_title_answers'], ), 'user_page_slug_answers' => array( 'label' => __( 'Answers page slug', 'anspress-question-answer' ), 'desc' => __( 'Custom slug for user profile answers page', 'anspress-question-answer' ), 'value' => $opt['user_page_slug_answers'], ), ), ); return $form; }
Expand full source code Collapse full source code View on GitHub: addons/profile/profile.php:88
Add your comment