WordPress /users/me endpoint request forbidden

The subset of data you are seeing is the publicly available author data. ie. if a user has published content on the site, their name, gravatar and description is deemed public data and available to un-authenticated requests. If you’re seeing this user data you can assume the access_token is invalid.

Does Deactivating a Plugin Help Anything?

Yes The overhead of a plugin sitting in your plugin folder is negligible, and would have an impact on the plugins page. The main area of optimisation here is the % of free space on your filesystem. Active plugins on the other hand can run queries, make remote requests, do expensive parsing, filesystem operations, and … Read more

Show WordPress Plugin Menu(Admin) To Editor

Check these links below. This is where the permissions are being set for your pretty link plugin admin menu: pretty-link/prli-main.php -> line 16 – it’s set to administrator you want edit_posts pretty-link/prli-main.php -> line 160 – it’s set to $current_user->user_level >= 8 you want $current_user->user_level >= 7 What are your options? OPTION 1 – Change … Read more

Is there a way to remove plugins in dashboard – where you cannot identify the slug by the plugins name?

I think what you’ll want to do is iterate over the $_GLOBALS[‘menu’] array. This should give you a list of all the items in the admin menu so you know what the hooks are that need to be removed. There are more details and good information in this answer: https://wordpress.stackexchange.com/a/136064/9080 The appropriate hook/slug can be … Read more

do_action in conditional

Note that did_action only takes one input argument: the name of the action hook. The scope of your if sentence is also unclear. I don’t think you want to use did_action at all here, it doesn’t give you the number of emails. You can try the following instead: if ( $unread = do_shortcode( ‘[input-unread]’ ) … Read more