WP_POSTRECEIVESCOMMENT::__construct()

Set up Automator trigger constructor.


Source Source

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

	public function __construct() {
		$this->trigger_code = 'WPCOMMENTRECEIVED';
		$this->trigger_meta = 'USERSPOSTCOMMENT';
		if ( is_admin() ) {
			add_action( 'wp_loaded', array( $this, 'plugins_loaded' ), 99 );
		} else {
			$this->define_trigger();
		}
	}