Password Protecting Media
an additional solution that may work and require no coding is to insert the PDF into a post and just have the post protected. Then insert the post onto the page
an additional solution that may work and require no coding is to insert the PDF into a post and just have the post protected. Then insert the post onto the page
How do I protect user_activation_key?
Yes and no wp_salt is the function you’re thinking of: https://core.trac.wordpress.org/browser/tags/4.8/src/wp-includes/pluggable.php#L1988 Your theory should be correct, copying the passwords over via SQL, and making sure all the salts are the same, then clearing cookies and trying to login, should do the trick. However, if we look at the code in the function, there are filters … Read more
What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
You should be using add_filter( … ), not apply_filters( … ): /** * Filters the life span of the post password cookie. * * By default, the cookie expires 10 days from creation. To turn this * into a session cookie, return 0. * * @since 3.7.0 * * @param int $expires The expiry time, … Read more
You might want to start here https://codex.wordpress.org/Customizing_the_Login_Form which discusses customizing the login form, and has info on the code file used therein. You will need to ‘hook’ into the login form using available hooks (also detailed at the above link). Also, my comment above: “Password history rules imply that you will need to save previous … Read more
Reset Password policy
If you know your admin’s user name (or email address), then use that on the ‘lost password’ screen. Then click on the link in the email you will get to change it. BTW, a user called ‘admin’ is not really good practice. That is halfway to getting the credentials for your site, but some ‘rainbow … Read more
Custom password form allows unlock two posts with the same password
I see what you’re trying to do, but it appears you only “ALMOST” followed the code example provided by the codex. Below is an annotated version of their sample code, substituting your desired URL: // You need the “10,2” in for WP to pass their parameters .. you can ignore them from that point forward. … Read more