Ut_Tokens::__construct()

Uc_Tokens constructor.


Source

File: src/integrations/uncanny-toolkit/tokens/ut-tokens.php

	public function __construct() {

		self::$user_import_tokens = array(
			'user_id'      => __( 'Imported user ID', 'uncanny-automator' ),
			'user_login'   => __( 'Imported user login', 'uncanny-automator' ),
			'user_email'   => __( 'Imported user email', 'uncanny-automator' ),
			'first_name'   => __( 'Imported user first name', 'uncanny-automator' ),
			'last_name'    => __( 'Imported user last name', 'uncanny-automator' ),
			'display_name' => __( 'Imported user display name', 'uncanny-automator' ),
			'wp_role'      => __( 'Imported user WordPress role', 'uncanny-automator' ),
		);

		add_filter(
			'automator_maybe_parse_token',
			array(
				$this,
				'parse_uncanny_toolkit_token',
			),
			20,
			6
		);

		add_filter(
			'automator_maybe_trigger_uncannytoolkit_utuserimported_tokens',
			array(
				$this,
				'ut_utuserimported_possible_tokens',
			),
			20,
			2
		);
		add_filter(
			'automator_maybe_trigger_uncannytoolkit_utuserimportedcourse_tokens',
			array(
				$this,
				'ut_utuserimportedincourse_possible_tokens',
			),
			20,
			2
		);
		add_filter(
			'automator_maybe_trigger_uncannytoolkit_utuserimportedgroup_tokens',
			array(
				$this,
				'ut_utuserimportedingroup_possible_tokens',
			),
			20,
			2
		);
		add_filter(
			'automator_maybe_trigger_uncannytoolkit_utgroupleaderimported_tokens',
			array(
				$this,
				'ut_utuserimportedingroup_possible_tokens',
			),
			20,
			2
		);

	}