Title: Override code plugin
Last modified: July 11, 2023

---

# Override code plugin

 *  Resolved [thebigonee](https://wordpress.org/support/users/thebigonee/)
 * (@thebigonee)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/override-code-plugin/)
 * 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](https://wordpress.org/support/users/hamza1010/)
 * (@hamza1010)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/override-code-plugin/#post-16888655)
 * Hi [@thebigonee](https://wordpress.org/support/users/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: **
 *     ```wp-block-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](https://ibb.co/44wGs8V)
 * Thanks & Regards
 * WP Experts Support Team
 *  Plugin Support [Mirza Hamza](https://wordpress.org/support/users/hamza1010/)
 * (@hamza1010)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/override-code-plugin/#post-16905967)
 * Hi [@thebigonee](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/new-user-approve/assets/icon-128x128.gif?rev=2544141)
 * [New User Approve](https://wordpress.org/plugins/new-user-approve/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/new-user-approve/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/new-user-approve/)
 * [Active Topics](https://wordpress.org/support/plugin/new-user-approve/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/new-user-approve/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/new-user-approve/reviews/)

## Tags

 * [override template](https://wordpress.org/support/topic-tag/override-template/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mirza Hamza](https://wordpress.org/support/users/hamza1010/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/override-code-plugin/#post-16905967)
 * Status: resolved