Access wordpress admin area without login - wordpress

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.

Related

Wordpress authentication for a custom page with access to plugin data

First, I am a Wordpress Noob. My company builds custom data dashboards. Our client wants to integrate our dashboard into Wordpress. They use plugins, mainly Gravity forms and WooCommerce, from which the dashboard needs to retrieve data.
The dashboard will be build as a custom page (HTML/JS/CSS) and we plan to served it as a Wordpress static item (like: https://qodeinteractive.com/magazine/add-custom-html-page-to-wordpress/).
Ideally, it would work like this:
the clients' user logs in into Wordpress.
Within the Wordpress environment the user can click a button to open our dashboard.
The dashboard fetches the data from Wordpress / a Wordpress API and displays it.
The complexity starts with the last step, how can we access the data from Wordpress/Gravity forms/WooCommerce. I would prefer it, if the user does not have to login separately into our dashboard, but that the credentials provided in Wordpress can be used.
There are API's available for Wordpress/Ggravity forms/WooCommerce, but I am unsure about the authentication part.
I found something about cookie authentication (https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#cookie-authentication), but I am not sure if this would work or how this works. The information is related to PHP, while we will be using HTML/JS.
Are there other options available?
I know it is a broad question, but I hope to get some pointers to how to deal with this.

WordPress “wp-admin” redirecting to a user account login

I’m getting a very strange error. When I try to log in to the back-end of WordPress at the address mysite.com/wp-admin, to access the back-end, I am automatically being redirected to mysite.com/login.php... as if I were trying to log into an account as a regular user or a customer.
I’m a novice with WordPress, and I can’t seem to figure this out. Please help.
I have a website which allows some of the users to post available jobs around the block and others apply through it.
Thank You
I'm not using any plugin to implement the front-end at all.
I tried to login using the regular admin credentials and it didn't work.
A way to login the back-end so i can customize the site
It sounds like you have a theme redirect. Try logging into your site using the login page it should function the exact same way. If not try seeing if the theme has any documentation about its redirect. and if you are able to get to the admin section i personally like having ithemes installed which lets me set my own url for the backend. You can also try /wp-login.php as well.

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 Restrict access to plugin only in 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!

Would like to integrate Cakephp project with Wordpress. Wordpress should be used for login/description of the another system

Would like to integrate Cakephp project with Wordpress. Any ideas how to do it best?
It should be my created information system which several pages could be launched from the Wordpress website.
Would like to have everything under one domain - Wordpress website blog (for describing the system) and the system itself.
At the moment I have my information system and bought a Wordpress theme also. Need Wordpress functionality to enrich my current information system based on CakePHP.
The need is to use Wordpress as the login, description, documentation mechanism. That's why I'm not sure how to do it under one domain the best way. Just need consulatancy how to make these two systems with their own databases to work together withinn one domain name.
If more specific - one of the Wordpress page should be the login page of my information system which is handled by the CakePHP MVC. Is that possible?
Maybe it could be done similarly to this approach:
http://www.eiosys.com/blog/solved-install-run-integrate-wordpress-blog-alogside-with-cakephp/
Or maybe here is almost what I need:
http://www.abhinavsood.com/install-cakephp-in-subdirectory-of-wordpress/
Any better ideas?

Resources