WP_Customize_Manager::panels PHP Method

panels() public method

Get the registered panels.
Since: 4.0.0
public panels ( ) : array
return array Panels.
    public function panels()
    {
        return $this->panels;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Removes all non-AMP sections and panels.
  *
  * Provides a clean, standalone instance-like experience by removing all non-AMP registered panels and sections.
  *
  * @since 0.4
  * @access private
  */
 private function _unregister_core_ui()
 {
     $panels = $this->wp_customize->panels();
     $sections = $this->wp_customize->sections();
     foreach ($panels as $panel_id => $object) {
         $this->wp_customize->remove_panel($panel_id);
     }
     foreach ($sections as $section_id => $object) {
         $this->wp_customize->remove_section($section_id);
     }
 }
All Usage Examples Of WP_Customize_Manager::panels
WP_Customize_Manager