I am using B2BKing version 5.2.40 and need to automatically apply WooCommerce product-category visibility to newly created B2BKing customer groups.
I need a hook that fires when a new B2BKing customer group is created, and I need the newly created group's ID passed to the hook.
The B2BKing AI help tool suggested:
b2bking_after_group_created
but I tested it on my live 5.2.40 installation and it did not fire or produce any change.
Can you please confirm the exact action hook in B2BKing 5.2.40 that fires immediately after a customer group is created, and provide its exact arguments?
I will use it to set WooCommerce product-category term meta for the new group.
My intended visibility structure is:
Standard categories: visible to all guests, B2C users, existing B2B groups, and automatically to every new B2B group.
Brokerage categories: all are children of the WooCommerce Broker Partners category and must remain restricted to their corresponding B2BKing group.