Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • The auto-embed does NOT work with 3.1.3 using the Youtube SHORT URLs. So if your link looks like this:

    https://youtu.be/Vw4KVoEVcr0

    It won’t work. You’ll need the full URL from address bar like this:

    https://www.youtube.com/watch?v=Vw4KVoEVcr0

    The function to use when programmatically setting the password is wp_hash_password. I ran into a problem similar to mediabros – I’d update the user_pass column in the wp_users table to a wp_hash_password hashed string, but login with the new password was still just not working.

    The trick was to make a call to wp_cache_delete($ID, 'users') after setting the password programmatically, clearing the WordPress cache (which apparently stores hashed passwords along with other user details).

    Of course, this only applies if you have enabled the WordPress object cache using define('ENABLE_CACHE', true) in wp-config.php

Viewing 2 replies - 1 through 2 (of 2 total)