| | |
| | | do_action(BASE.'activation'); |
| | | error_log('Action done!'); |
| | | error_log('Checking custom tables...'); |
| | | Queue::defineTables(); |
| | | CustomTable::ensureTables(); |
| | | error_log('Dashboard is setup: '.print_r(JVB()->dashboard(), true)); |
| | | |
| | |
| | | |
| | | $role = get_role('administrator'); |
| | | $users = get_users(['role' => 'administrator']); |
| | | foreach (array_merge(Registrar::getRegistered('post'), Registrar::getFeatured('is_content')) as $slug) { |
| | | foreach (array_merge(Registrar::getRegistered('post'), Registrar::withFeature('is_content')) as $slug) { |
| | | error_log('Adding administrative roles to '.$slug); |
| | | $plural = $roleManager->getContentPlural($slug); |
| | | $capabilities = [ |
| | |
| | | $roleManager = new RoleManager(); |
| | | $users = get_users(['role' => 'administrator']); |
| | | |
| | | foreach (array_merge(Registrar::getRegistered('post'), Registrar::getFeatured('is_content', 'term')) as $slug) { |
| | | foreach (array_merge(Registrar::getRegistered('post'), Registrar::withFeature('is_content', 'term')) as $slug) { |
| | | |
| | | foreach ($users as $user) { |
| | | // These methods should check if post type exists before adding caps |