PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.2
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.2
6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 5.6.2 All 33 releases
automatorwp / integrations / zoom / includes / scripts.php

scripts.php in AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI 6.0.2, at integrations/zoom/includes/scripts.php

50 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Scripts
4 *
5 * @package AutomatorWP\Zoom\Scripts
6 * @author AutomatorWP <contact@automatorwp.com>, Ruben Garcia <rubengcdev@gmail.com>
7 * @since 1.0.0
8 */
9 // Exit if accessed directly
10 if( !defined( 'ABSPATH' ) ) exit;
11
12 /**
13 * Register admin scripts
14 *
15 * @since 1.0.0
16 * @return void
17 */
18 function automatorwp_zoom_admin_register_scripts() {
19
20 // Use minified libraries if SCRIPT_DEBUG is turned off
21 $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
22
23 // Stylesheets
24 wp_register_style( 'automatorwp-zoom-css', AUTOMATORWP_ZOOM_URL . 'assets/css/automatorwp-zoom' . $suffix . '.css', array(), AUTOMATORWP_ZOOM_VER, 'all' );
25
26 // Scripts
27 wp_register_script( 'automatorwp-zoom-js', AUTOMATORWP_ZOOM_URL . 'assets/js/automatorwp-zoom' . $suffix . '.js', array( 'jquery' ), AUTOMATORWP_ZOOM_VER, true );
28
29 }
30 add_action( 'admin_init', 'automatorwp_zoom_admin_register_scripts' );
31
32 /**
33 * Enqueue admin scripts
34 *
35 * @since 1.0.0
36 * @return void
37 */
38 function automatorwp_zoom_admin_enqueue_scripts( $hook ) {
39
40 // Stylesheets
41 wp_enqueue_style( 'automatorwp-zoom-css' );
42
43 wp_localize_script( 'automatorwp-zoom-js', 'automatorwp_zoom', array(
44 'nonce' => automatorwp_get_admin_nonce(),
45 ) );
46
47 wp_enqueue_script( 'automatorwp-zoom-js' );
48
49 }
50 add_action( 'admin_enqueue_scripts', 'automatorwp_zoom_admin_enqueue_scripts', 100 );