Wordpress authentication for a custom page with access to plugin data - wordpress

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.

Related

I'm trying to implement external REST APIs in my wordpress website. Can anybody have idea how to do it (whether with a plugin or with programming)

I tried to use one plugin called "WP Data Sync". I am also going through its documentation/ support for the same. I am also having wpbakery page builder in my website. So is there any way that we sync with that also?
Note - We have to sync data in the form of images, image gallery, events listing, and the blog posts.
Did you check out WP Data Syncs website at https://wpdatasync.com/ and create an account to check out an API key?
I'm not sure about all APIs, but the ones I've used in the past would require me to register with the API's website, get issued an API key and maybe even designate the key to a specific website (your WordPress site in this case) for security reasons. After that, you would then go to your WP site and setup the API there via WP DataSyncs plugin.
I hope I understood your question and that this helps.

Wordpress plugin service page

have spent hours of researching understanding the correct approach for developing plugin for wordpress which does have custom "service" URL.
So far done:
plugin registers custom capabilities and role
inits the db and entries using $wpdb
create rest-api hook that could be used with JS
Should do:
Only the users with custom role "service" shall have access to a service dashboard.
the service dashboard shall make use of $wpdb to query data from the db.
I am looking badly for a simple example to learn from which shows a custom page that isn't integrated into WP posts or the admin panel.
Something that does check current user and allow access for given role to e.g. "www.awesome-wp-page.com/myplugin/main" and load some further data later as e.g. "www.awesome-wp-page.com/myplugin/stats/1234"
Originally I wanted WP to query the data via its own custom restapi, but also did not find any examples that query rest-api within WP (providing nonce etc) as simple example.
I found a lot examples for admin panels, adding links to post etc, but to my surprise not really some examples which do load simple (form) page or do a quick custom DB query and show the results on a static link.
Any help is appreciated

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 - Front-end registration plus user profile data

So I managed to create a front-end registration page for my wordpress site.
But I still want to add some user data such as Twitter, Facebook, Google Plus and Bio as required data on registration.
I searched for solution but I ended up with plugins, and I don't like the idea of using plugin for that.
Here is the current code that I got from a tutorial:
http://www.tutorialstag.com/create-custom-wordpress-registration-page.html
I just want to know what should I add, or is this possible.
Thanks.

wordpress user registration/profile plugin

I am trying to make a wordpress site which will allow users to register by themselves and log into the site and have a profile. IS there such a plugin that will allow me to incorporate this into my site? I have looked around and being that I have very little experience with making sites/wordpress I have decided to ask some experts.
I know with wordpress you get a "blog" sort of site, but i'm hoping that if the plug-in i'm looking for exists then I can make my site to look different. The reason I am asking for each individual member to have their own "profile page/ private page" is because I want to be able to upload data to their specific pages and they should be able to see the data without seeing others'.
Thanks for any and all help you can provide me.
If I can't find a suitable solution, I will try to build a site with joomla, I had gone with wordpress because I had heard that it was easier to use.
Yeah, There is one plugin to do all these in wordpress. Plugin name: Profile Builder - front-end user registration, login and edit profile
plugin Link: http://wordpress.org/plugins/profile-builder/
Yeah, There is one plugin to do with all the things which you want. Plugin Name : "Theme My Login"
Plugin Features :
Your registration, log in, and password recovery pages will all match
the rest of your website
Includes a customizable widget to login anywhere from your blog
Redirect users upon log in and log out based upon their role
Show gravatar to users who are logged in.
Assign custom links to users who are logged in based on their role
Customize user emails for registration and/or password recovery
Send user emails in HTML format
Allow users to set their own password upon registration
Require users to be approved or confirm e-mail address upon
registration
Theme user profiles
Please refer the following Location :
Theme My Login

Resources