WP_Customize_Nav_Menu_Section

Customize Menu Section Class.

Defined (1)

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

/wp-includes/customize/class-wp-customize-nav-menu-section.php  
  1. class WP_Customize_Nav_Menu_Section extends WP_Customize_Section { 
  2.  
  3. /** 
  4. * Control type. 
  5. * @since 4.3.0 
  6. * @access public 
  7. * @var string 
  8. */ 
  9. public $type = 'nav_menu'; 
  10.  
  11. /** 
  12. * Get section parameters for JS. 
  13. * @since 4.3.0 
  14. * @access public 
  15. * @return array Exported parameters. 
  16. */ 
  17. public function json() { 
  18. $exported = parent::json(); 
  19. $exported['menu_id'] = intval( preg_replace( '/^nav_menu\[(-?\d+)\]/', '$1', $this->id ) ); 
  20.  
  21. return $exported;