• Resolved xeith

    (@xeith)


    hi,

    I would like to remove vendor registration from my account page. is there a filter for it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter xeith

    (@xeith)

    i found the solution. Sorry for the trouble.
    just added this in my function.php in child theme

    remove_action( 'woocommerce_register_form', 'dokan_seller_reg_form_fields' );

    i found the solution. Sorry for the trouble.
    just added this in my function.php in child theme

    remove_action( ‘woocommerce_register_form’, ‘dokan_seller_reg_form_fields’ );

    @xeith, you answer is wrong. because ‘dokan_seller_reg_form_fields’ is added inside a class. so remove_action wont work as you mentioned. so working solution is below.
    Note: this is tested with DokanPro 2.7.4

    function remove_dokan_frontend_vendor_registration() {
        $Dokan_Pro = dokan_pro();
        remove_action( 'woocommerce_after_my_account', array( $Dokan_Pro, 'dokan_account_migration_button' ));
    }
    add_action( 'init', 'remove_dokan_frontend_vendor_registration' );

    @achchu93 Thanks it worked!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove vendor registration’ is closed to new replies.