1 | <?php |
||
27 | class ShortcodeUI implements ShortcodeUIInterface { |
||
28 | |||
29 | use ConfigTrait; |
||
30 | use CheckNeedTrait; |
||
31 | |||
32 | /** |
||
33 | * Name of the shortcode handler. |
||
34 | * |
||
35 | * @since 0.1.0 |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $shortcode_tag; |
||
40 | |||
41 | /** |
||
42 | * Dependencies to be enqueued. |
||
43 | * |
||
44 | * @since 0.1.0 |
||
45 | * |
||
46 | * @var DependencyManager |
||
47 | */ |
||
48 | protected $dependencies; |
||
49 | |||
50 | /** |
||
51 | * Instantiate Basic Shortcode UI. |
||
52 | * |
||
53 | * @since 1.0. |
||
54 | * |
||
55 | * @param string $shortcode_tag Tag of the Shortcode. |
||
56 | * @param ConfigInterface $config Configuration settings. |
||
57 | * @param DependencyManager|null $dependencies Optional. Dependencies that |
||
58 | * need to be enqueued. |
||
59 | * @throws RuntimeException If the config could not be processed. |
||
60 | */ |
||
61 | public function __construct( |
||
71 | |||
72 | /** |
||
73 | * Register the shortcode UI handler function with WordPress. |
||
74 | * |
||
75 | * @since 0.1.0 |
||
76 | * |
||
77 | * @param mixed $context Data about the context in which the call is made. |
||
78 | * @return void |
||
79 | */ |
||
80 | public function register( $context = null ) { |
||
90 | } |
||
91 |