PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.2
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.2
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
content-control / classes / Controllers / BlockEditor.php

BlockEditor.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 2.6.2, at classes/Controllers/BlockEditor.php

50 lines 870 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Frontend general setup.
4 *
5 * @copyright (c) 2021, Code Atlantic LLC.
6 * @package ContentControl
7 */
8
9 namespace ContentControl\Controllers;
10
11 use ContentControl\Base\Controller;
12
13 defined( 'ABSPATH' ) || exit;
14
15 /**
16 * Class BlockEditor
17 *
18 * @version 2.0.0
19 */
20 class BlockEditor extends Controller {
21
22 /**
23 * Initiate hooks & filter.
24 *
25 * @return void
26 */
27 public function init() {
28 add_action( 'enqueue_block_editor_assets', [ $this, 'enqueue_assets' ] );
29 add_action( 'enqueue_block_assets', [ $this, 'enqueue_block_assets' ] );
30 }
31
32 /**
33 * Enqueue block editor assets.
34 *
35 * @return void
36 */
37 public function enqueue_assets() {
38 wp_enqueue_script( 'content-control-block-editor' );
39 }
40
41 /**
42 * Enqueue block assets.
43 *
44 * @return void
45 */
46 public function enqueue_block_assets() {
47 wp_enqueue_style( 'content-control-block-styles' );
48 }
49 }
50