Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions: Add a hook_add_admin_capabilities() function #10

Open
cleverington opened this issue Jun 4, 2022 · 0 comments
Open

Permissions: Add a hook_add_admin_capabilities() function #10

cleverington opened this issue Jun 4, 2022 · 0 comments

Comments

@cleverington
Copy link
Owner

The function should look something like this, when used:

/**
  * Add Access to the Post Type
 *
 * Note: Additional Roles can be given access as needed.
 */
elegant_add_admin_capabilities( 'administrator', $capabilities[0], $capabilities[1] );
elegant_add_admin_capabilities( 'editor', $capabilities[0], $capabilities[1] );

It would then ensure add_cap() was triggered specifically for any new/custom declared capabilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant