PluginProbe
WP Ultimate Post Grid / 1.7.2
WP Ultimate Post Grid v1.7.2
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / vendor / vafpress / classes / wp / enqueuer.php

enqueuer.php in WP Ultimate Post Grid 1.7.2, at vendor/vafpress/classes/wp/enqueuer.php

35 lines 665 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * For singleton accessor, use VP_WP_MassEnqueuer class instead.
5 */
6 class VP_WP_Enqueuer
7 {
8
9 private $_loaders = array();
10
11 private $_id;
12
13 public function __construct()
14 {
15 $this->_id = spl_object_hash($this);
16 $loader = new VP_WP_Loader();
17 add_action('vp_loader_register_' . $this->_id, array($loader, 'register'), 10, 2);
18 }
19
20 public function add_loader($loader)
21 {
22 $this->_loaders[] = $loader;
23 }
24
25 public function register()
26 {
27 add_action('admin_enqueue_scripts', array($this, 'register_caller'));
28 }
29
30 public function register_caller($hook_suffix)
31 {
32 do_action('vp_loader_register_' . $this->_id, $this->_loaders, $hook_suffix);
33 }
34
35 }