Autonami_Helpers::get_tag_dropdown( $add_any = true )

get_tag_dropdown

Contents


Return Return

(void)


Source Source

File: src/integrations/autonami/helpers/autonami-helpers.php

	public function get_tag_dropdown( $add_any = true ) {

		$tag_options = array();

		if ( $add_any ) {
			$tag_options[] = array(
				'value' => -1,
				'text'  => __( 'Any tag', 'uncanny-automator' ),
			);
		}

		$tag_options = array_merge( $tag_options, $this->get_tags() );

		$dropdown = array(
			'input_type'            => 'select',
			'option_code'           => 'TAG',
			/* translators: HTTP request method */
			'label'                 => esc_attr__( 'Tag', 'uncanny-automator' ),
			'required'              => true,
			'supports_custom_value' => false,
			'options'               => $tag_options,
		);

		return $dropdown;

	}