WP_CREATEPOST::__construct()

Set up Automator action constructor.


Source Source

File: src/integrations/wp/actions/wp-createpost.php

	public function __construct() {
		$this->action_code = 'CREATEPOST';
		$this->action_meta = 'WPPOSTFIELDS';
		if ( is_admin() ) {
			add_action( 'wp_loaded', [ $this, 'plugins_loaded' ], 99 );
		} else {
			$this->define_action();
		}
	}