Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
06
/
wp-content
/
plugins
/
the-events-calendar
/
common
/
src
/
Tribe
/
Service_Providers
:
Debug_Bar.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Hooks and manages the plugins Debug Bar integrations. * * @since 4.9.5 */ use TEC\Common\Contracts\Service_Provider; class Tribe__Service_Providers__Debug_Bar extends Service_Provider { /** * Binds and sets up implementations. */ public function register() { add_filter( 'debug_bar_panels', [ $this, 'add_panels' ] ); } /** * Adds The Events Calendar panels to the Debug Bar panels. * * @since 4.9.5 * * @param Debug_Bar_Panel[] $panels The current list of Debug Bar panels. * * @return array A modified list of Debug Bar panels. */ public function add_panels( array $panels ) { /** * Filters the list of The Events Calendar debug bar panels that will be added to the * Debug Bar. * * @since 4.9.5 * * @param Debug_Bar_Panel[] The default list of The Events Calendar panels added to the Debug Bar. */ $tribe_panels = apply_filters( 'tribe_debug_bar_panels', [ new Tribe__Debug_Bar__Panels__Context(), new Tribe__Debug_Bar__Panels__Json_Ld(), ] ); if ( count( $tribe_panels ) > 0 ) { $panels = array_merge( $panels, $tribe_panels ); } return $panels; } }