Php 将控件添加到WordPress自定义菜单

Php 将控件添加到WordPress自定义菜单,php,wordpress,Php,Wordpress,是否有方法将新控件添加到自定义页面的“菜单”选项卡 我想在“菜单位置”上加一个按钮。 我已经尝试使用如下添加控制功能: $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'test', array( 'label' => __( 'Test', 'yespizza' ), 'section' =

是否有方法将新控件添加到自定义页面的“菜单”选项卡

我想在“菜单位置”上加一个按钮。 我已经尝试使用如下添加控制功能:

$wp_customize->add_control( new WP_Customize_Control( 
        $wp_customize,
        'test', 
        array(
            'label' => __( 'Test', 'yespizza' ), 
            'section' => 'nav_menus',
            'settings' => 'test_setting', 
            'priority' => 10,
        ) 
    ));
我不知道如何才能为菜单找到正确的部分名称。 问候