mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
7 lines
265 B
Text
7 lines
265 B
Text
add_filter( 'aioseo_user_profile_tab_allowed_user_ids', 'aioseo_profile_tab_allowed_users', 10, 2 );
|
|
function aioseo_profile_tab_allowed_users( $user_ids, $user_id ) {
|
|
if ( ! user_can( $user_id, 'edit_posts' ) ) {
|
|
$user_ids[] = $user_id;
|
|
}
|
|
return $user_ids;
|
|
}
|