WPUM_REMOVESCOVERPHOTO::define_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/wp-user-manager/triggers/wpum-removescoverphoto.php
public function define_trigger() { $trigger = array( 'author' => Automator()->get_author_name( $this->trigger_code ), 'support_link' => Automator()->get_author_support_link( $this->trigger_code, 'integration/wp-user-manager/' ), 'integration' => self::$integration, 'code' => $this->trigger_code, /* translators: Logged-in trigger - WP User Manager */ 'sentence' => __( 'A user removes their profile cover image', 'uncanny-automator' ), /* translators: Logged-in trigger - WP User Manager */ 'select_option_name' => __( 'A user removes their profile cover image', 'uncanny-automator' ), 'action' => 'wpum_user_update_remove_cover', 'priority' => 99, 'accepted_args' => 1, 'validation_function' => array( $this, 'wpum_profile_cover_removed' ), 'options' => array(), ); Automator()->register->trigger( $trigger ); }
Expand full source code Collapse full source code View on Github