I'm going to be using add_role() and $role->add_cap() to set up a new custom role and attach a new capability to existing roles.
I'm wondering where the best place to do this is? Obviously I can do it straight inside functions.php and be done with it. But is this the best practice? Do I only need to do this on admin_init? or should I do it on init?
I'm not entirely sure what the best practices are around using init action hooks rather than just dropping a direct function call inside functions.php.
thanks for your input!