restricted rss feed

I’ve wrestled with this problem myself. The issue is that many RSS readers don’t support authentication, so even if you manage to protect your feed, the content won’t be readble for many clients. Using the WordPress Password plugin is probably the wrong way to go. Directly from the author’s site: I’ve pretty well ended support … Read more

How Authentication in wordpress works? wp_authenticate_username_password()

This is the line you’re looking for: $userdata = get_user_by(‘login’, $username); The get_user_by function calls WP_User::get_data_by and that function eventually executes this SQL: SELECT * FROM $wpdb->users WHERE user_login = $username The hashed password will be contained in the results of that query. Eventually, the wp_check_password function will be called to compare the hashes.

How to implement a custom password field that redirects to another page upon correct password?

The problem is that WP will redirect to the referrer when the authentication succeeds. Fortunately, you can also supply _wp_http_referer and it will be preferred over the HTTP Referrer, so we need to add a hidden field to the form and fill it with the permalink of the post in question: echo str_replace(‘</form>’, ‘<input type=”hidden” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)