How can I hide the Permalink/Shortlink for certain user logged in Users of a certain level? June 16, 2022 by Tarik Billa There’re two functions: is_user_logged_in() && current_user_can('capability_type') that will help you to acchieve this.