It’s okay if I do not write add_action()
It is not always required technically but it is good practice to follow for multiple reasons: Code is more organized by keeping hook-related stuff together The more precise conditions when it runs – the better for performance It is easier to unhook function, that performs multiple add_, then unhook each add_ individually. The order of … Read more