Pmp_Tokens::uap_save_pmp_membership_level( $membership_id,  $args,  $user_id,  $meta )


Source Source

File: src/integrations/paid-memberships-pro/tokens/pmp-tokens.php

	public function uap_save_pmp_membership_level( $membership_id, $args, $user_id, $meta ) {

		$args = [
			'user_id'        => $user_id,
			'trigger_id'     => $args['trigger_id'],
			'meta_key'       => $meta,
			'meta_value'     => $membership_id,
			'run_number'     => $args['run_number'], //get run number
			'trigger_log_id' => $args['get_trigger_id'],
		];

		Automator()->insert_trigger_meta( $args );
	}