Skip to:
Content

  • Home
  • Integrations
  • Help
  • Blog
  • Download
Automator Developer Resources

Code Reference

  • Home
  • Reference
Filter by type:
Search
Browse: Home / Reference / Classes / WP_CREATEPOST / WP_CREATEPOST::__construct()

WP_CREATEPOST::__construct()

Set up Automator action constructor.


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();
		}
	}

Expand full source code Collapse full source code View on Github


Twitter • Facebook • YouTube • Contact Us • Privacy • Terms of Service