Custom Capability

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

By default, only administrators can manage your WordPress SEO options through the All in One SEO Pack menu system. This is accomplished through a special capability automatically assigned to administrators called aiosp_manage_seo.

You can assign this capability to non-administrator roles or individuals, either via the WordPress API or with a role editor plugin.

For example, to add the capability to editors:

function add_new_seo_cap() {
    $role = get_role( 'editor' );
    $role->add_cap( 'aiosp_manage_seo' ); 
}
add_action( 'admin_init', 'add_new_seo_cap');

To add the capability to a specific user:

$user = new WP_User( $user_id );
$user->add_cap( 'aiosp_manage_seo' );

There is also a seo filter hook available which allows you to swap out the aiosp_manage_seo capability with any other capability of your choosing.

[i]
[i]
Skip to toolbar