Make TO field ['fep_mr_to'] Readonly


Home Forums Front End PM PRO Make TO field ['fep_mr_to'] Readonly

This topic is: Not Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7303
    Dominique Baril
    Participant

    Make TO field [‘fep_mr_to’] Readonly

    Since I allow my users to only chat with a single correspondent, previously defined when a user click on a link containing href="<?php echo fep_query_url('newmessage', array('fep_to' => get_the_author_meta( 'user_nicename') ) ); ?>">

    I would like to make the TO field readonly.

    I tried to add the following code in my child-theme function.php, but it doesn’t work.

    add_filter( 'fep_form_fields', 'fep_cus_fep_form_fields' );
    function fep_cus_fep_form_fields( $fields )
    {
        $fields['fep_mr_to'] = array(
          'readonly'        => true,
        );
    
        return $fields;
    }

    What else can I do?

    #7325
    shamim
    Keymaster

    New filter fep_pro_filter_pre_populate is added here to change the value for next version. Next version will be released next week.

Viewing 2 posts - 1 through 2 (of 2 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.