WP_USERCREATESPOST::__construct()

Set up Automator trigger constructor.


Source Source

File: src/integrations/wp/triggers/wp-usercreatespost.php

	public function __construct() {
		$this->trigger_code = 'USERSPOST';
		$this->trigger_meta = 'WPPOSTTYPES';
		if ( is_admin() && empty( $_POST ) ) {
			add_action( 'init', array( $this, 'define_trigger' ), 99 );
		} else {
			$this->define_trigger();
		}
	}