您可以使用input_attrs
将属性传递给输入的参数:
$wp_customize->add_control(\'directorist_address\', array(
\'label\' => __(\'Address\', \'directorist\'),
\'section\' => \'directorist_contact\',
\'settings\' => \'directorist_address\',
\'description\' => __(\'Enter your contact address. Eg. Abc Business Center, 123 Road, London, England\', \'directorist\' ),
\'input_attrs\' => array(
\'placeholder\' => __( \'Placeholder goes here...\', \'directorist\' ),
)
)
);