PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.8.23.4
Pods – Custom Content Types and Fields v2.8.23.4
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / tribe-common / src / Tribe / Service_Providers / Debug_Bar.php
pods / tribe-common / src / Tribe / Service_Providers Last commit date
Body_Classes.php 2 weeks ago Crons.php 2 weeks ago Debug_Bar.php 2 weeks ago Dialog.php 2 weeks ago PUE.php 2 weeks ago Processes.php 2 weeks ago Promoter.php 2 weeks ago Shortcodes.php 2 weeks ago Tooltip.php 2 weeks ago Widgets.php 2 weeks ago
Debug_Bar.php
48 lines
1 <?php
2
3 /**
4 * Hooks and manages the plugins Debug Bar integrations.
5 *
6 * @since 4.9.5
7 */
8
9 class Tribe__Service_Providers__Debug_Bar extends tad_DI52_ServiceProvider {
10
11 /**
12 * Binds and sets up implementations.
13 */
14 public function register() {
15 add_filter( 'debug_bar_panels', [ $this, 'add_panels' ] );
16 }
17
18 /**
19 * Adds The Events Calendar panels to the Debug Bar panels.
20 *
21 * @since 4.9.5
22 *
23 * @param Debug_Bar_Panel[] $panels The current list of Debug Bar panels.
24 *
25 * @return array A modified list of Debug Bar panels.
26 */
27 public function add_panels( array $panels ) {
28 /**
29 * Filters the list of The Events Calendar debug bar panels that will be added to the
30 * Debug Bar.
31 *
32 * @since 4.9.5
33 *
34 * @param Debug_Bar_Panel[] The default list of The Events Calendar panels added to the Debug Bar.
35 */
36 $tribe_panels = apply_filters( 'tribe_debug_bar_panels', [
37 new Tribe__Debug_Bar__Panels__Context(),
38 new Tribe__Debug_Bar__Panels__Json_Ld(),
39 ] );
40
41 if ( count( $tribe_panels ) > 0 ) {
42 $panels = array_merge( $panels, $tribe_panels );
43 }
44
45 return $panels;
46 }
47 }
48