How to modify error messages?


Home Forums Front End PM PRO How to modify error messages?

This topic is: Not Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21980
    Utsav Sarkar
    Participant

    I want to change the text for the error message “Error: Your message box is full. Please delete some messages.”

    How can I do this?

    #21994
    Shamim Hasan
    Keymaster

    Add following code in your theme’s (child theme’s if any) functions.php

    add_action( 'fep_action_validate_form', function( $where, $errors ){
        if ( $errors->get_error_message( 'MgsBoxFull' ) ){
            $errors->remove( 'MgsBoxFull' );
            $errors->add( 'MgsBoxFull', __( 'Your custom message here.', 'front-end-pm' ) );
        }
    }, 15, 2 );
    
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.