Zoom_Helpers::load_scripts( mixed $hook )

load_scripts


Parameters Parameters

$hook

(Required)


Top ↑

Return Return

(void)


Source Source

File: src/integrations/zoom/helpers/zoom-helpers.php

	public function load_scripts( $hook ) {
		if ( 'post.php' !== $hook ) {
			return;
		}
		if ( 'uo-recipe' != get_current_screen()->post_type ) {
			return;
		}
		$script_uri = plugin_dir_url( __FILE__ ) . '../scripts/zoom-meetings.js';
		wp_enqueue_script( 'zoom-meetings', $script_uri, array ( 'jquery' ), InitializePlugin::PLUGIN_VERSION, true );
	}