Add additional words to error output


Home Forums Front End PM PRO Add additional words to error output

This topic is: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21112
    Andrew Perryman
    Participant

    Hi Shamim,

    I would like to add additional word content to this error message which resides in the “class-fee-group-message.php” approx line 248, however I don’t know if it is ok safe to embellish it?


    Currently - $errors->add( 'pro_to' , __('You are not member to any group', 'front-end-pm'));

    To- $errors->add( 'pro_to' , __('You are not member to any group-please add relevant groups via the settings button above', 'front-end-pm'));

    I don’t know if there are any other instances of this same error output message, so if there is can you please let me know where they are so I can update them if it is ok to do so?

    Andrew

    #21137
    Shamim Hasan
    Keymaster

    If you edit core plugin code, it will be lost when you update this plugin. It is always better to use hooks.

    You can use fep_before_form_fields to check if this error present and can replace with your desire error message.

    #21141
    Andrew Perryman
    Participant

    Cool, thanks Shamim…

Viewing 3 posts - 1 through 3 (of 3 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.