Post registration hook is not getting called for users registered through a custom database script

I found a similar issue - but no comments were given before it was closed.

it does not look like the post user registration hook is firing for custom database registrations. Is that the intended behaviour? Or do I need to enable anything in the dashboard?

Initial issue - Post registration hook is not getting called from users registered through custom database script

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!