Site requires login. How to publish login-free RSS feed?
Site requires login. How to publish login-free RSS feed?
Site requires login. How to publish login-free RSS feed?
Look carefully at your .htaccess and apache configuration, Your server is intercepting the request. Unless I’m mistaken, I really don’t think this is a WP problem. You might try ServerFault.com and/or your host provider for this one. You also might want to think about how subdomain are mapped to your site. Chances are, if I … Read more
Was simpler than I thought, but surprisingly little information about this. A client can request a protected page by specifying the cookie with a cookie query parameter: http://{wordpress-installation}/user?cookie={cookie}
As ialocin mentioned some requirements will require extra customizations. I can create a number of passwords to access the page You would create user accounts. Passwords don’t exist without users. An expiration date can be set for each password This isn’t implemented in wordpress and requires the most work. You could probably store a date … Read more
I have similar functionality on one of my app. I used wp_set_auth_cookie(). Remove the custom_login() function and use wp_set_auth_cookie($user_id) in its place.
You can use wp-api. Its really easy and best. The documentation is also very clear and vast. Its provide a small plugin which can do everything you want. http://wp-api.org/
Hook into wp_login and use oAuth from the rest-api to validate against the other site. I’m sure keeping the user info the same between the two sites would be tough though
Logged In cookie gets saved but not Auth cookie
Try… function maybe_auth_redirect() { if ( is_page_template(‘my-template.php’) && ! is_user_logged_in() ) { auth_redirect(); } } add_action(‘template_redirect’, ‘maybe_auth_redirect’); https://developer.wordpress.org/reference/functions/is_page_template
To store user–specific information WordPress has a user meta, pretty much identical to post meta (also known as custom fields). See get_user_meta() and related functions. Unfortunately WP doesn’t provide any interface or interface helpers for it. You would have to implement that yourself, probably hooking into user profile screen.