_description = __( 'Settings related to the dashboard widgets', 'wp-auth0' ); } public function init() { $this->init_option_section( '', 'dashboard', array( array( 'id' => 'wpa0_chart_age_type', 'name' => 'Age', 'function' => 'render_age_chart_type', ), array( 'id' => 'wpa0_chart_idp_type', 'name' => 'Identity providers', 'function' => 'render_idp_chart_type', ), array( 'id' => 'wpa0_chart_gender_type', 'name' => 'Gender', 'function' => 'render_gender_chart_type', ), array( 'id' => 'wpa0_chart_age_from', 'name' => 'Age buckets start', 'function' => 'render_age_from', ), array( 'id' => 'wpa0_chart_age_to', 'name' => 'Age buckets end', 'function' => 'render_age_to', ), array( 'id' => 'wpa0_chart_age_step', 'name' => 'Age buckets step', 'function' => 'render_age_step', ), ) ); } public function render_dashboard_description() { ?>
options->get( 'chart_age_from' ) ); ?> options->get( 'chart_age_to' ) ); ?> options->get( 'chart_age_step' ) ); ?> options->get( 'chart_age_type' ); ?> /> /> /> options->get( 'chart_idp_type' ); ?> /> /> /> options->get( 'chart_gender_type' ); ?> /> /> /> validate_chart_type( $input['chart_gender_type'] ); $input['chart_idp_type'] = $this->validate_chart_type( $input['chart_idp_type'] ); $input['chart_age_type'] = $this->validate_chart_type( $input['chart_age_type'] ); return $input; } }