Title: Remove hook defined in contruct
Last modified: November 28, 2021

---

# Remove hook defined in contruct

 *  Resolved [loopforever](https://wordpress.org/support/users/loopforever/)
 * (@loopforever)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/remove-hook-defined-in-contruct/)
 * Hello,
    I want to remove this hook, but I cannot remove it because it is in the
   construct. Can you help me? …dokan-lite/includes/Dashboard/Templates/Settings.
   php
 * add_action(‘init’, ‘remove_show_enable_seller_message’);
    function remove_show_enable_seller_message(){
   remove_action(‘dokan_settings_content_inside_before’, array (dokan()->Settings,‘
   remove_show_enable_seller_message’)); }
 * Also, I would appreciate if you briefly explain how you wrote the class name.
   Because I am facing other similar problems.
    I’ve looked through your documents
   and there is no single answer. I don’t want to open topic again and again. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Shafinoid](https://wordpress.org/support/users/shafinahmad01/)
 * (@shafinahmad01)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/remove-hook-defined-in-contruct/#post-15111830)
 * Hi [@loopforever](https://wordpress.org/support/users/loopforever/)
 * Thank you for replying back
 * I will not be able to provide this custom solution as per our support policy.
   But to use such constructed hooks you will need to look for **Class** or **Instance**.
 * I can share a third-party similar solution which might help you out. Click [here](https://stackoverflow.com/questions/60572826/how-to-remove-an-action-in-the-constructor-of-a-class-in-a-plugin-through-functi)
   to check the solution.
 * Have a nice day!
 *  [Shafinoid](https://wordpress.org/support/users/shafinahmad01/)
 * (@shafinahmad01)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/remove-hook-defined-in-contruct/#post-15149470)
 * Hello,
    I believe you are doing well,
 * As you haven’t replied for a long, I’m considering that you have got the solution
   and I’m also resolving this topic.
 * But feel free to create another one anytime.
 * Stay Safe 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove hook defined in contruct’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Shafinoid](https://wordpress.org/support/users/shafinahmad01/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/remove-hook-defined-in-contruct/#post-15149470)
 * Status: resolved