mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-28 11:22:21 +08:00
7 lines
284 B
Text
7 lines
284 B
Text
add_filter( 'aioseo_access_control_excluded_roles', 'aioseo_filter_access_control_excluded_roles' );
|
|
function aioseo_filter_access_control_excluded_roles( $roles ) {
|
|
if ( ( $key = array_search( 'shop_manager', $roles ) ) !== false ) {
|
|
unset( $roles[ $key ] );
|
|
}
|
|
return $roles;
|
|
}
|