New answers tagged


By default passwords are encrypted using 8 passes of MD5. There are other ways to configure the password encryption. ( The hashes are based on custom keys setup in the wp-config file when creating the site. They are stored locally and not on You can make users register to leave ...


First, check for get_current_user_id. Then create a log of visits by adding information to a user's metadata with update_user_meta & get_user_meta. On every page hit that you care about you can run a function to determine rate/limit of usage per user. If they break the rules, you can redirect to a page that doesn't contain that logic with wp_redirect.


This is just a modification of timshutes' answer - if you want specific pages to require login and don't want to put them into a custom post type, you can add to functions.php: add_shortcode('need_login', 'shortcode_needLogin'); function shortcode_needLogin() { if (!is_user_logged_in()) { auth_redirect(); } } And then at the top of the ...


A recent comment brought my attention to this question, which I had posted. I had also posted another question regarding this topic, and had later solved it and posted an answer, here: JWT authentication with WP - Approach Copying that answer here, so that it helps someone who stumbles across this implementation: The endpoint coded in the app that I am ...

Top 50 recent answers are included