PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.3.4
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.3.4
2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 1.8.1 All 42 releases
sellkit / includes / admin / class.php

class.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster 2.3.4, at includes/admin/class.php

54 lines 1004 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || die();
4
5 /**
6 * Sellkit admin class.
7 *
8 * @since 1.2.1
9 */
10 class Sellkit_Admin {
11 /**
12 * Construct
13 *
14 * @since 1.2.1
15 */
16 public function __construct() {
17 add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_admin_scripts' ] );
18 }
19
20 /**
21 * Enqueues admin scripts.
22 *
23 * @since 1.2.1
24 */
25 public function enqueue_admin_scripts() {
26 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
27
28 wp_enqueue_script(
29 'sellkit-admin',
30 sellkit()->plugin_url() . 'assets/dist/js/admin' . $suffix . '.js',
31 [ 'lodash', 'wp-element', 'wp-i18n', 'wp-util' ],
32 sellkit()->version(),
33 true
34 );
35
36 wp_enqueue_style(
37 'sellkit-admin',
38 sellkit()->plugin_url() . 'assets/dist/css/admin' . $suffix . '.css',
39 [],
40 sellkit()->version()
41 );
42
43 wp_localize_script(
44 'sellkit-admin',
45 'sellkitAdmin',
46 [
47 'nonce' => wp_create_nonce( 'sellkit_admin' ),
48 ]
49 );
50 }
51 }
52
53 new Sellkit_Admin();
54