• Resolved thebigonee

    (@thebigonee)


    Hi team, i’m using the free version of your plug-in and I want to edit the file “new-user-approve/includes/messages.php“, but can I put the code modification in my child theme and it will be override ? Because this solution it doesn’t work for me… I want to edit the function “nua_default_welcome_message()”, if you know how to do it without directly edit in the source code, please share it ??

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @thebigonee,

    Thanks for contacting us,

    I hope you are doing well, You can use the following available filter of New User Approve (free version) to change the welcome message and also you can do your custom code in it that you want to run at that particular instance.

    Here is the code:

    add_filter( 'new_user_approve_welcome_message_default',function($oldMessage){
    	//you can do your custom code here
    
    	//change welcome message
    	$newMessage = '<span style="color:red">CUSTOM MESSAGE HERE</span>';
    return $newMessage;
    } );
    

    Frontend Message Screen: see screenshot

    https://ibb.co/44wGs8V

    Thanks & Regards

    WP Experts Support Team

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @thebigonee,

    We are resolving this thread due to a lack of activity if you have any questions so please open a new thread.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Override code plugin’ is closed to new replies.