Skip to main content
added 15 characters in body
Source Link
Jacob Peattie
  • 43.9k
  • 10
  • 49
  • 62

You can use the input_attrs argument to pass attributes to the input:

$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' ),
        )
    )
);

You can use the input_attrs argument to pass attributes to the input:

$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'),
        'input_attrs' => array(
            'placeholder' => __( 'Placeholder goes here...' ),
        )
    )
);

You can use the input_attrs argument to pass attributes to the input:

$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' ),
        )
    )
);
Source Link
Jacob Peattie
  • 43.9k
  • 10
  • 49
  • 62

You can use the input_attrs argument to pass attributes to the input:

$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'),
        'input_attrs' => array(
            'placeholder' => __( 'Placeholder goes here...' ),
        )
    )
);