1 | <?php |
||
16 | class Kirki_Modules_Selective_Refresh { |
||
17 | |||
18 | /** |
||
19 | * The object instance. |
||
20 | * |
||
21 | * @static |
||
22 | * @access private |
||
23 | * @since 3.0.0 |
||
24 | * @var object |
||
25 | */ |
||
26 | private static $instance; |
||
27 | |||
28 | /** |
||
29 | * Adds any necessary actions & filters. |
||
30 | * |
||
31 | * @access protected |
||
32 | */ |
||
33 | protected function __construct() { |
||
36 | |||
37 | /** |
||
38 | * Gets an instance of this object. |
||
39 | * Prevents duplicate instances which avoid artefacts and improves performance. |
||
40 | * |
||
41 | * @static |
||
42 | * @access public |
||
43 | * @since 3.0.0 |
||
44 | * @return object |
||
45 | */ |
||
46 | public static function get_instance() { |
||
52 | |||
53 | /** |
||
54 | * Parses all fields and searches for the "partial_refresh" argument inside them. |
||
55 | * If that argument is found, then it starts parsing the array of arguments. |
||
56 | * Registers a selective_refresh in the customizer for each one of them. |
||
57 | * |
||
58 | * @param object $wp_customize WP_Customize_Manager. |
||
59 | */ |
||
60 | public function register_partials( $wp_customize ) { |
||
86 | } |
||
87 |