1. Text

'field_1' => array(
   'type' => 'text',
   'label' => esc_html__( 'Text 1', 'my-domain' ),
),

Option Hint

'field_1' => array(
    'type'     => 'text',
    'label'    => esc_html__( 'Text 1', 'my-domain' ),
    'value'    => '[some_shortcode]',
    'hint'     => esc_html__( 'You can add type="login" or type="register" in shortcode to choose starting form', 'my-domain' ),
),

Option Readonly

'field_1' => array(
    'type'     => 'text',
    'label'    => esc_html__( 'Text 1', 'my-domain' ),
    'value'    => '[some_shortcode]',
    'readonly' => true,
),

Last updated