WPUM_UPDATESCOVERPHOTO::wpum_cover_photo_updated( $user_id, $value )
Contents
Parameters Parameters
- $user_id
-
(Required)
- $value
-
(Required)
Source Source
File: src/integrations/wp-user-manager/triggers/wpum-updatescoverphoto.php
public function wpum_cover_photo_updated( $user_id, $value ) { if ( 0 === absint( $user_id ) ) { // Its a logged in recipe and // user ID is 0. Skip process return; } $pass_args = [ 'code' => $this->trigger_code, 'meta' => $this->trigger_meta, 'user_id' => $user_id, 'ignore_post_id' => true, ]; Automator()->maybe_add_trigger_entry( $pass_args ); }
Expand full source code Collapse full source code View on Github