PluginProbe
Powerkit – Supercharge your WordPress Site / 2.4.4
Powerkit – Supercharge your WordPress Site v2.4.4
3.1.1 3.1.0 3.0.9 3.0.8 trunk 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 All 87 releases
powerkit / core / class-powerkit-module-public.php

class-powerkit-module-public.php in Powerkit – Supercharge your WordPress Site 2.4.4, at core/class-powerkit-module-public.php

72 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Module public carcase
4 *
5 * @package Powerkit
6 * @subpackage Core
7 */
8
9 // If this file is called directly, abort.
10 if ( ! defined( 'WPINC' ) ) {
11 die;
12 }
13
14 /**
15 * Module public class.
16 */
17 class Powerkit_Module_Public {
18
19 /**
20 * The module slug.
21 *
22 * @var string $slug The module slug.
23 */
24 public $slug = null;
25
26 /**
27 * __construct
28 *
29 * This function will initialize the initialize
30 *
31 * @param string $slug The module slug.
32 */
33 public function __construct( $slug = null ) {
34
35 // Init slug of module.
36 $this->slug = $slug;
37
38 // Initialize.
39 $this->initialize();
40
41 // Actions.
42 add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ) );
43 add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
44 }
45
46 /**
47 * Initialize
48 *
49 * This function will initialize the module
50 */
51 public function initialize() {
52
53 /* do nothing */
54 }
55
56 /**
57 * Load the required dependencies for this module.
58 */
59 public function wp_enqueue_scripts() {
60
61 /* do nothing */
62 }
63
64 /**
65 * Load the required dependencies for this module in block editr.
66 */
67 public function enqueue_block_editor_assets() {
68
69 /* do nothing */
70 }
71 }
72