I would like to keep logged in Users who can write and edit their own posts from seeing the Permalink/Shortcode for the post (located under the Title field). I’ve been able to cut out other features but can’t figure this one out.
Any ideas?
I would like to keep logged in Users who can write and edit their own posts from seeing the Permalink/Shortcode for the post (located under the Title field). I’ve been able to cut out other features but can’t figure this one out.
Any ideas?
You must be logged in to post a comment.
There’re two functions:
is_user_logged_in()
&¤t_user_can('capability_type')
that will help you to acchieve this.Thanks for answering. But what you told me I already understand. I should have mentioned that I know how to write the function. I don’t know, however, what the tag or name is for the Permalink/Shortcode section. Any idea what that may be?