fs_custom_panels_init

Initialize Freemius custom debug panels.

Description

(array) fs_custom_panels_init( (array) $panels ); 

Returns (array)

Debug bar panels with your custom panels

Parameters (1)

0. $panels (array)
Debug bar panels objects

Usage

  1. if ( !function_exists( 'fs_custom_panels_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/freemius/includes/debug/debug-bar-start.php'; 
  3.  
  4. // Debug bar panels objects 
  5. $panels = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = fs_custom_panels_init($panels); 
  9.  

Defined (1)

The function is defined in the following location(s).

/freemius/includes/debug/debug-bar-start.php  
  1. function fs_custom_panels_init( $panels ) { 
  2. if ( class_exists( 'Debug_Bar_Panel' ) ) { 
  3. if ( FS_API__LOGGER_ON ) { 
  4. require_once dirname( __FILE__ ) . '/class-fs-debug-bar-panel.php'; 
  5. $panels[] = new Freemius_Debug_Bar_Panel(); 
  6.  
  7. return $panels;