REST API Integration without user account?
REST API Integration without user account?
REST API Integration without user account?
You, and those plugins, should be using the HTTP API to make connections. That API will attempt to make a connection in several different ways. If your site is capable of making HTTP requests that API should be able to do it. That is largely the point of the API: The problem is that web … Read more
You can use a CDN to serve the content to users from the closest server to them.
You should use curl method. Here is a brief explaination: So you have a form in your abc.com site (no need for iframe) then you should use $_POST method to send the data to a page you have created before and includes your curl php codes. On the other server you should have created a … Read more
Change it so they all use the same db but different prefixes (if you’re not alreasy using that). Then adjust the wp-config.php to use the same user tables for all installs: http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables Don’t forget to make sure the safety hashes of all installs are the same. And perhaps it is useful to set the cookie … Read more
1. Do I need to define a new URL for handling the $_POST request? No, you don’t need to define new URL. 2. Which action hook do I need to use for handling such a request? You can use init hook. Sample code function my_theme_send_email() { if ( isset( $_POST[’email-submission’] ) && ‘1’ == $_POST[’email-submission’] … Read more
“Authorization Required” message is from the Apache world. Looks like you have set the basic authentication in apache for the login page. This is simply indicated by the “pop-up” type of the error.
Yes, you can. However, you’ll need to know either the userid or the username. Create a link with any of that as a data attribute and make a ajax call with that. On success, you can just reload the page and your user will be logged in. If you know the user id.. function wpse_304392_login_by_id() … Read more
Since the file is in your theme directory, WordPress may not want the user to “directly” access it. Why not create a Page in wordpress, assign a Template Name to your PHP page and then assign that to the new page created in wordpress. For example, you would have a new page called “Members Only” … Read more
I have looked over the wordpress.org plugin directory and I couldn’t find anything… but you can always do this: 1) Create a copy of the wp-login.php and name it to something secret so you can always login later (like superlog_in1234.php) 2) Edit wp-login.php and look for all the <form> elements, and replace them with <meta … Read more