WP_VIEWCUSTOMPOST::__construct()
Set up Automator trigger constructor.
Source
File: src/integrations/wp/triggers/wp-viewcustompost.php
public function __construct() { $this->trigger_code = 'VIEWCUSTOMPOST'; $this->trigger_meta = 'WPCUSTOMPOST'; if ( is_admin() ) { add_action( 'wp_loaded', array( $this, 'plugins_loaded' ), 99 ); } else { $this->define_trigger(); } }
Expand full source code Collapse full source code View on Github