GCALENDAR_ADDATTENDEE::setup_action()
Setup Action.
Return Return
(Uncanny_Automatorvoid.)
Source Source
File: src/integrations/google-calendar/actions/gcalendar-addattendee.php
protected function setup_action() { $this->set_integration( 'GOOGLE_CALENDAR' ); $this->set_action_code( self::PREFIX . '_CODE' ); $this->set_action_meta( self::PREFIX . '_META' ); $this->set_support_link( Automator()->get_author_support_link( $this->get_action_code(), 'knowledge-base/google-calendar/' ) ); $this->set_is_pro( false ); $this->set_requires_user( false ); $this->set_sentence( sprintf( /* translators: Action sentence */ esc_attr__( 'Add {{an attendee:%1$s}} to {{an event:%2$s}} in {{a Google Calendar:%3$s}}', 'uncanny-automator' ), $this->get_action_meta(), $this->get_formatted_code( 'event_id' ) . ':' . $this->get_action_meta(), $this->get_formatted_code( 'calendar_id' ) . ':' . $this->get_action_meta() ) ); /* translators: Action - WordPress */ $this->set_readable_sentence( esc_attr__( 'Add {{an attendee}} to {{an event}} in {{a Google Calendar}}', 'uncanny-automator' ) ); $this->set_options_callback( array( $this, 'load_options' ) ); $this->register_action(); }
Expand full source code Collapse full source code View on Github