[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Customize API: WP_Customize_New_Menu_Control class 4 * 5 * @package WordPress 6 * @subpackage Customize 7 * @since 4.4.0 8 * @deprecated 4.9.0 This file is no longer used as of the menu creation UX introduced in #40104. 9 */ 10 11 _deprecated_file( basename( __FILE__ ), '4.9.0' ); 12 13 /** 14 * Customize control class for new menus. 15 * 16 * @since 4.3.0 17 * @deprecated 4.9.0 This class is no longer used as of the menu creation UX introduced in #40104. 18 * 19 * @see WP_Customize_Control 20 */ 21 class WP_Customize_New_Menu_Control extends WP_Customize_Control { 22 23 /** 24 * Control type. 25 * 26 * @since 4.3.0 27 * @var string 28 */ 29 public $type = 'new_menu'; 30 31 /** 32 * Constructor. 33 * 34 * @since 4.9.0 35 * @deprecated 4.9.0 36 * 37 * @see WP_Customize_Control::__construct() 38 * 39 * @param WP_Customize_Manager $manager Customizer bootstrap instance. 40 * @param string $id The control ID. 41 * @param array $args Optional. Arguments to override class property defaults. 42 * See WP_Customize_Control::__construct() for information 43 * on accepted arguments. Default empty array. 44 */ 45 public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) { 46 _deprecated_function( __METHOD__, '4.9.0' ); 47 parent::__construct( $manager, $id, $args ); 48 } 49 50 /** 51 * Render the control's content. 52 * 53 * @since 4.3.0 54 * @deprecated 4.9.0 55 */ 56 public function render_content() { 57 _deprecated_function( __METHOD__, '4.9.0' ); 58 ?> 59 <button type="button" class="button button-primary" id="create-new-menu-submit"><?php _e( 'Create Menu' ); ?></button> 60 <span class="spinner"></span> 61 <?php 62 } 63 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |