OPTINMONSTER_SHOW_CAMPAIGN::add_script()

add_script


Return Return

(void)


Source Source

File: src/integrations/optinmonster/actions/optinmonster-show-campaign.php

	public function add_script() {

		if ( is_admin() ) {
			return;
		}

		if ( ! $this->optinmonster_action_exists() ) {
			return;
		}

		$script_uri = plugin_dir_url( __FILE__ ) . '../scripts/show-campaign.js';

		wp_enqueue_script( 'automator-optinmonster', $script_uri, array( 'jquery' ), InitializePlugin::PLUGIN_VERSION, true );

	}