wordpress restrict pulgin installation to those who have a unique code - wordpress

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:

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!

How to create end user login page in WordPress?

I am new to WordPress. Help me create end user login page. I have created and site with a theme. My requirement is to create a login page for the site not for the dashboard.
Only if they login, they should be able to access other pages
I need lo add an sign in page for the site, and then user should visit be able to visit these pages
If you are looking to have login form on front end then there are multiple plugins available out there. Checkout UserPro plugin.
Also Free plugin like 'Theme My Login (TML)' can be used to provide login functionality on front end. These are just examples, there are many others as well.
Let me know if this helps or feel free to discuss more in details.
This is very well possible. You can even do this without any advanced coding skills, but it requires some (very popular) plugins.
Use the 'sidebar login widget' to let people login on any part of your website and use 'login redirect' to send them to a specific private(!) page, based on their role.
I can recommend the 'TML plugin', Faisal suggests, to make the experience even more polished. Additionally you can use the 'User role editor' to customize your roles and/or create new ones.
Sidebar login: https://wordpress.org/plugins/sidebar-login/
Login redirect:
https://wordpress.org/plugins/peters-login-redirect/screenshots/
TML plugin: https://wordpress.org/plugins/theme-my-login/
User role editor: https://wordpress.org/plugins/user-role-editor/
Its Very Simple Just Search for Login box in Plugin > add New and Install the plugin.
after put the code where you want to show the login box.
you will find the code in plugin setting.
One of the best ways to quickly mod any theme is to get membership plugin or users add-on plugin. They usually have the basic stuff like login register customisation and my accaunt page.
Try https://wordpress.org/plugins/users-ultra/ but in your case maybe it will be an overkill.
you can also modify your plugin file name form-login.php in wp-conttent/plugin/templates
Similar to Theme My Login, ProfilePress is another great option. They even have an article on creating a custom login page. And it's a completely free plugin available in the WordPress plugin repo.
Since wordpress is an blogging framework we can use it for blogging purpose efficiently.. For building custom sites with javascript functionalities you have to edit index.php and header.php under your theme and then add your custom code.
To be short wordpress does not provide any end user login for site by default, only some of the paid theme supports that

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).

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