Use field title as placeholder

If you like to use the field title as a placeholder, put following code to your functions.php

add_filter( 'user_meta_field_config', 'titleAsPlaceholder', 10, 3 );
function titleAsPlaceholder( $field, $fieldID, $formName ) {
    if ( !empty( $field['field_title'] ) )
        $field['placeholder'] = $field['field_title'];
 
    return $field;
}

Leave a Reply

Subscribe to our newsletter