Title: How to overrite this function
Last modified: May 19, 2021

---

# How to overrite this function

 *  Resolved [Make carlos](https://wordpress.org/support/users/make-carlos/)
 * (@make-carlos)
 * [5 years ago](https://wordpress.org/support/topic/how-to-overrite-this-function/)
 * Hi
    How to overrite this function.
 *     ```
           /**
            * Handle product add
            *
            * @return void
            */
           public function handle_product_add() {
   
       }
       ```
   
 * Thanks

Viewing 1 replies (of 1 total)

 *  [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * (@rur165)
 * [5 years ago](https://wordpress.org/support/topic/how-to-overrite-this-function/#post-14459119)
 * Hello [@make-carlos](https://wordpress.org/support/users/make-carlos/) ,
 * I do not have a direct example to override this function.
 * I can provide some hints:
    – This function is added by this hook so you can try
   to override the following: `add_action( 'template_redirect', array( $this, 'handle_product_add'),
   11 );` – There are several filters & action hooks available in the mentioned 
   function. Check if the item you want to modify available through them.
 * Thank you 🙂

Viewing 1 replies (of 1 total)

The topic ‘How to overrite this function’ is closed to new replies.

 * ![](https://ps.w.org/dokan-lite/assets/icon-256x256.gif?rev=3239229)
 * [Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy](https://wordpress.org/plugins/dokan-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dokan-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dokan-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/dokan-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dokan-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dokan-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/how-to-overrite-this-function/#post-14459119)
 * Status: resolved