How to add an extra class in the following PHP code?

enter image description here

That is my wordpresss plugin code

Read More
$html .= $userMeta->createInput( 'remember', 'checkbox', array(
    'value'         => isset( $_REQUEST['remember'] ) ? true : false,
    'label'         => !empty( $config['remember_label'] ) ?  $config['remember_label']   : __( 'Remember Me', $userMeta->name ),
    'id'            => !empty( $config['remember_id'] ) ? $config['remember_id'] :    'remember' . $uniqueID,
    'class'         => !empty( $config['remember_class'] ) ? $config['remember_class'] : 'um_remember_field',
    'enclose'       => 'p',
) );    

I want to add a class on that <p> tag for give extra style specially display none..
`

Related posts

Leave a Reply

1 comment

  1. Try this :

    $html .= $userMeta->createInput( 'remember', 'checkbox', array(
        'value'         => isset( $_REQUEST['remember'] ) ? true : false,
        'label'         => !empty( $config['remember_label'] ) ?  $config['remember_label']   : __( 'Remember Me', $userMeta->name ),
        'id'            => !empty( $config['remember_id'] ) ? $config['remember_id'] :    'remember' . $uniqueID,
        'class'         => !empty( $config['remember_class'] ) ? $config['remember_class'] : 'um_remember_field',
        'enclose'       => 'p class="myclass"',
    ) );