Trigger_Process::get_user_id()

Contents


Return Return

(mixed)


Source Source

File: src/core/lib/recipe-parts/triggers/trait-trigger-process.php

	public function get_user_id() {
		if ( empty( $this->user_id ) && is_user_logged_in() ) {
			$this->user_id = wp_get_current_user()->ID;
		}

		return $this->user_id;
	}