WPUM_REMOVESPROFILEPHOTO::define_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/wp-user-manager/triggers/wpum-removesprofilephoto.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 photo', 'uncanny-automator' ), /* translators: Logged-in trigger - WP User Manager */ 'select_option_name' => __( 'A user removes their profile photo', 'uncanny-automator' ), 'action' => 'wpum_user_update_remove_avatar', 'priority' => 99, 'accepted_args' => 1, 'validation_function' => array( $this, 'wpum_profile_photo_removed' ), 'options' => array(), ); Automator()->register->trigger( $trigger ); }
Expand full source code Collapse full source code View on Github