How to enable a Wordpress plugin to contributor? - wordpress

Iam new to wordpress. I have a small blog. Iam not able to use a wordpress plugin for a contributor account. How can I enable a plugin to contributor help me.

If i understood correctly you have a plugin installed that need to be used by a contributor user. If this is the case I guess you have 3 option:
Dig into the plugin look and look if when they do add_menu_page (or add_submenu_page) they left an hook for the capability parameter. If that's the case, hook into that and change it to some capability that your contributor user has
Install this plugin https://it.wordpress.org/plugins/members/ and configure the contributor role so that he can actually see/use the plugin. Be careful, you may end up screwing your wp if you don't pay attention or break some security rules
Obviously: make that user admin. But that of course can't always be acceptable. It depends on your security requirements/choice

Related

How can I enable access only to a specific plugin (Newsletter) to a new user on the wordpress admin dashboard?

I am using the Newsletter plugin to send newsletters from my Wordpress website. I want to create a new user who can only access the Newsletter plugin and not have any other admin capability on the admin dashboard.
How do I do that?
I have been experimenting with different access-control plugins, but none seem to have the capability to toggle access for a user/role to another plugin.
Would greatly appreciate if someone can point me to a plugin or a piece of code that can make the magic happen.
Many thanks in advance.
Turned out to be quite simple eventually.
The newsletter plugin, in the advanced settings option in its settings tab, provides a checkbox to allow certain user roles to access the plugin.
I just enabled it for a non-admin role that worked for me, and voila!

Wordpress: Allow Contributor to edit other post and publish with moderation

I need to allow contributors to edit other post and publish posts but keeping the moderation.
Because, i modify the capabilities publish_posts and edit_others_posts, there is no more moderation.
Thanks for help.
WordPress is a system where the contributor only able to add new and save for review, not publishing the post. When admin approve the post, the post made published. But as far as I can understand that's not what happening in your system, right?
In that case I would like to suggest you to keep a backup, reinstall the core files (except config file)
Also, delete and re-add a .htaccess file.
Then reset your permalinks.
Hope that's gonna helps any.
Also, disable all plugins and see if there is some plugin affecting the contributor role.
I can’t think of any reason why a Contributor should be able to publish.
More you can find here:
https://developer.wordpress.org/plugins/users/roles-and-capabilities/
https://wordpress.org/support/article/roles-and-capabilities/

Wordpress user roles/permissions

I have an admin user, and a contributor user.
Now when the contributor makes a new page it gets sent for approval by the administrator user. This is good , however i want this same ability but for when editing pages.
So if a contributor edits any page, the changes have to be approved by an administrator.
I do not know how to achieve this, I am using the User Role Editor Plugin but can still not get this to work.
Does any one know how i can implement this?
According to the codex, a contributor is somebody who can write and manage their own posts but cannot publish them. I'm assuming your contributor is editing posts that have already been published? All you need to do is set them to draft and publish them again once you're happy with the edits.

how to create plan subscription in wordpress plugin so no one can play with the code?

I am confuse about plan subscription development in plugin, because if user download the whole plugin coding file then he/she can change the any of the code in plugin.
so how can develop this type of plugin. And also backupbuddy, gravityforms also make this type of annual subscription plan and if user make to code change in backupbuddy then deactivate the plugin but i can't understand the code which type of security in those plugin.
So, please suggest me how to develop.
I think Backup-buddy and gravity forms are used "filemtime" function for security purpose,because there are no any way to prevent user to modify code. because wordpress plugin are fully under control in user (open source).

wordpress restrict pulgin installation to those who have a unique code

i want to make an wordpress plugin, and to put it public, but i want that only the users that have a certain unique code to be able to activate it.
is there possible using the wordpress api to ask for a unique code at plugin activation (and to condition the plugin activation by this code)? I searched wordpress codex, but nothing found.
thanks a lot!
This sounds like the old akismet plugin which required users to register for an API token. You can as part of your plugin require users to enter settings and at this point prompt them to register for an API key.
See the WordPress codex for adding an options page.
Also see this example for a good example of hooking into the plugin activation:

Resources