WPUM_REMOVESCOVERPHOTO::wpum_profile_cover_removed( $user_id )


Parameters Parameters

$user_id

(Required)


Source Source

File: src/integrations/wp-user-manager/triggers/wpum-removescoverphoto.php

	public function wpum_profile_cover_removed( $user_id ) {


		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 );
	}