AnsPress_Reputation_Hooks::load_options()
Description #
Register reputation options
Source #
File: addons/free/reputation.php
public static function load_options() { $opt = ap_opt(); $form = array( 'fields' => array( 'user_page_title_reputations' => array( 'label' => __( 'Reputations page title', 'anspress-question-answer' ), 'desc' => __( 'Custom title for user profile reputations page', 'anspress-question-answer' ), 'value' => $opt['user_page_title_reputations'], ), 'user_page_slug_reputations' => array( 'label' => __( 'Reputations page slug', 'anspress-question-answer' ), 'desc' => __( 'Custom slug for user profile reputations page', 'anspress-question-answer' ), 'value' => $opt['user_page_slug_reputations'], ), 'sep1' => array( 'html' => '<p>' . __( 'Reputation event points can be adjusted here :', 'anspress-question-answer' ). ' <a href="' . admin_url( 'admin.php?page=anspress_options&active_tab=reputations' ) . '" class="button">' . __( 'Reputation Points' ) . '</a></p>', ), ), ); return $form; }
Expand full source code Collapse full source code View on GitHub: addons/free/reputation.php:75
Add your comment