OPTINMONSTER_SHOW_CAMPAIGN::get_fields()

Get the action fields.


Source Source

File: src/integrations/optinmonster/actions/optinmonster-show-campaign.php

	public function get_fields() {

		$fields = array();

		// List of available campaigns
		$fields[] = array(
			'input_type'            => 'select',
			'option_code'           => $this->get_action_meta(),
			/* translators: HTTP request method */
			'label'                 => esc_attr__( 'Campaign', 'uncanny-automator' ),
			'description'           => esc_attr__( 'Inline campaigns are not supported as they are always displayed.', 'uncanny-automator' ),
			'required'              => true,
			'supports_custom_value' => false,
			'options'               => Automator()->helpers->recipe->optinmonster->get_campaigns(),
		);

		return $fields;

	}