AnsPress_Tag::option_fields()

Description #

Register option fields.

Source #

File: addons/free/tag.php

	public static function option_fields() {
		$opt = ap_opt();

		$form = array(
			'fields' => array(
				'tags_per_page' => array(
					'label'       => __( 'Tags to show', 'anspress-question-answer' ),
					'description' => __( 'Numbers of tags to show in tags page.', 'anspress-question-answer' ),
					'subtype'     => 'number',
					'value'       => $opt['tags_per_page'],
				),
				'max_tags' => array(
					'label'             => __( 'Maximum tags', 'anspress-question-answer' ),
					'description'       => __( 'Maximum numbers of tags that user can add when asking.', 'anspress-question-answer' ),
					'subtype'     => 'number',
					'value'       => $opt['max_tags'],
				),
				'min_tags' => array(
					'label'             => __( 'Minimum tags', 'anspress-question-answer' ),
					'description'       => __( 'minimum numbers of tags that user must add when asking.', 'anspress-question-answer' ),
					'subtype'     => 'number',
					'value'       => $opt['min_tags'],
				),
				'tag_page_slug' => array(
					'label' 	=> __( 'Tag page slug', 'anspress-question-answer' ),
					'desc' 		=> __( 'Slug for tag page', 'anspress-question-answer' ),
					'value'   => $opt['tag_page_slug'],
				),
			),
		);

		return $form;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment