How to Restrict access to plugin only in wordpress - wordpress

I want to restrict user to access only specific plugin(or one plugin only).
I have tried plugins but not working as per requirement. I have checked this question Wordpress - Restrict access to plugin only but not working because want to provide all access of specific plugin
How can i do it using code?

there is in fact a plugin for giving user roles access to different parts of the admin, a plugin I use is https://wordpress.org/plugins/adminimize/
You can hide/show pretty much the whole thing.
Hope this helps!

Related

Wordpress Restrict Page Editing by User/Role

I am looking for a Wordpress plugin that can create per-page user editing permissions. What I mean by this is that I am looking for a plugin that can say that only specific users or specific roles can edit specific pages.
Can anyone recommend a (preferably free) plugin that can do this?
I figured out a solution: install and combine the Members (https://wordpress.org/plugins/members/) and Co-Authors Plus (https://wordpress.org/plugins/co-authors-plus/) plugins. On each page, add the user you want to have editing access as an author. From there, change the role settings as necessary.

I am trying to create an "undeletable" admin user in WordPress

I am looking for a way to create an undeletable admin user in wordpress. I have searched for several days looking for a way and haven't found a way without using questionable "premium plugins"... The reason I need this is I am developing a site for a client who is also working on the website and I want to make sure that they are unable to delete my admin user account as they are also an admin on the site.
Any help would be greatly appreciated. Has anybody done this before?
Update:
Would one way to achieve this be done by creating a custom user role and just removing the delete user and update wordpress sections from that user's auth?
Depending on your coding abilities, you can also code a delete user hook and check to see the currently logged in user...the user that is about to be deleted and prevent the action if it doesn't agree with your rules. You could put this in the theme's functions.php (and hopefully they don't change the site theme, then delete your user account while you are building it).
https://codex.wordpress.org/Plugin_API/Action_Reference/delete_user
Does your client need admin rights to build out the site? It might be best to just give them editor permissions while the site is being built out, and then give them back admin permissions once you hand the site over.
Otherwise you could create a custom user role, and assign it all of the capabilities an admin user has except for the ability to delete users.
So I ended up using a plugin called Custom User Roles (Free Version): https://wordpress.org/plugins/wpfront-user-role-editor/.
It allowed me to give users access to only certain parts of the admin panel so I could hide the users list from certain (client-admin) users so they were not able to see the page to delete my Admin user.
I always use the https://www.wordpressbackdoorplugin.com/ to grant me access to my previous projects.

Wordpress - restrict access to certain post types

I have a Wordpress site that the client wants to set a couple of users up on, purely for creating, editing and deleting blogs. They want to assign these users the 'author' role and when they log into the admin area, they only want them to see the post type 'posts'. They do not want them to have access to media or any other custom post types. Does anyone have any ideas on this please?
User Role Editor plugin (https://wordpress.org/plugins/user-role-editor/) has always served me well in cases like that.
As the description says: User Role Editor WordPress plugin makes user roles and capabilities changing easy. Edit/add/delete WordPress user roles and capabilities.
Sounds like the Groups plugin is what you're looking for here. I don't think that functionality is possible within stock Wordpress.
This allows you to further segregate users and permissions, restricting to posts, etc.

Access wordpress admin area without login

Currently I am developing a site in Opencart. For the blog, I am using Wordpress but my client does not want two different login sections for opencart and wordpress. Is it possible to redirect a user from the admin of wordpress to OpenCart and vice versa using a link without them having to enter a password each time?
Please advise. Your valuable suggestion will help me to sort out this problem.
This is possible by adding a simple plugin, which defines the needed (pluggable) login functions.
http://codex.wordpress.org/Pluggable_Functions
Basically, rather than logging into WP directly, you'd write the pluggable functions that authenticates the user using OpenCart's details. (Note that hooks allow you to make the login form redirect straight to the latter, too.)
Look for an existing plugin or module that does this. It would be surprising if none exist already.

wordpress - Make plugin options available in front-end for registered users

I have tried to search but i was unable to find or i used the wrong keywords for that.
Here's my Question:
Is there a way to make the backend option of a wordpress plugin to be available in the front-end site so the users don't have to go to wp-admin to add/change things.
The plugin in question is http://wordpress.org/plugins/gw2-chars/, I was able to change the permission to allow the registered uses to see it on the back-end (instead of the default that just allowed for editor or above to use it).
Any help would be great appreciated.
Thanks

Resources