INTEGRATELY_SENDWEBHOOK::setup_action()

Setting up Webhook trigger


Return Return

(void)


Source Source

File: src/integrations/integrately/actions/integrately-sendwebhook.php

	protected function setup_action() {
		$this->set_integration( 'INTEGRATELY' );
		$this->set_action_code( 'INTEGRATELYSENDWEBHOOK' );
		$this->set_action_meta( 'WEBHOOK' );
		$this->set_author( 'Uncanny Automator' );
		$this->set_support_link( Automator()->get_author_support_link( $this->get_action_code(), 'knowledge-base/send-data-to-a-integrately-webhook?utm_source=uncanny_automator&utm_medium=integrately-send_data_to_webhook&utm_content=help_button' ) );
		$this->set_requires_user( false );
		/* translators: Action - Integrately */
		$this->set_sentence( sprintf( esc_attr__( 'Send data to Integrately {{webhook:%1$s}}', 'uncanny-automator' ), $this->get_action_meta() ) );
		/* translators: Action - Integrately */
		$this->set_readable_sentence( esc_attr__( 'Send data to Integrately {{webhook}}', 'uncanny-automator' ) );
		$this->set_options_group( Automator()->send_webhook->fields->options_group( $this->get_action_meta(), false, 'json' ) );
		$this->set_buttons( Automator()->send_webhook->fields->buttons( $this->get_action_meta(), $this->get_support_link() ) );
		$this->register_action();
	}