BO_AWARDACHIEVEMENT_A::load_options()

Contents


Return Return

(array[])


Source Source

File: src/integrations/badgeos/actions/bo-awardachievement-a.php

	public function load_options() {
		return Automator()->utilities->keep_order_of_options(
			array(
				'options_group' => array(
					$this->action_meta => array(
						Automator()->helpers->recipe->badgeos->options->list_bo_award_types(
							esc_attr__( 'Achievement type', 'uncanny-automator' ),
							'BOAWARDTYPES',
							array(
								'token'                 => false,
								'is_ajax'               => true,
								'target_field'          => $this->action_meta,
								'supports_custom_value' => false,
								'endpoint'              => 'select_achievements_from_types_BOAWARDACHIEVEMENT',
							)
						),
						Automator()->helpers->recipe->field->select_field_args(
							array(
								'option_code'              => $this->action_meta,
								'options'                  => array(),
								/* translators: Noun */
								'label'                    => esc_attr__( 'Award', 'uncanny-automator' ),
								'required'                 => true,
								'custom_value_description' => esc_attr__( 'Award ID', 'uncanny-automator' ),
							)
						),
					),
				),
			)
		);
	}