New answers tagged

0

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 ...


1

I have been looking around the core files searching for hooks, there were very few when it comes to hooking into edit_user() function which updates the user data in profile.php page, so I have finished with some workarounds: My workaround is to save the user's password in a custom option before the password was updated, and match later with this user's ...


0

One of the development efforts in the WordPress 4.3 cycle was improving the way that passwords are chosen and changed. Before, people had to start from scratch when choosing a password. They were presented with an empty box, and had to use a really terrible tool for generating secure passwords: the human brain. Here’s how things look now, as we approach 4.3’...


1

"Generate password" button, which you say "it is not the usual field", is the standard since WordPress 4.3. You can click it and a new password is auto generated; if you don't like it, you can modify it before saving changes and update the user data. So, your question is basically wrong assuming that fields are not "usual"; they actually are. To change the ...


1

First of all I am a careful (maybe paranoid) guy. I tried to login into a Wordpress account few days ago and didn´t noticed it was the "Admin" login. I even notice that I can login via Twitch ... but that was too late! If it's not your account you should notify them! If you can get in who else might be in there doing bad things? Back to my story. If I ...


-1

Get all woocommerce product and its details like sku,price,product name $sql = "SELECT * FROM `wp_posts` wp LEFT JOIN wp_postmeta wpm ON wp.ID=wpm.post_id WHERE post_type='product'"; $results = $wpdb->get_results($sql); print_r($results);



Top 50 recent answers are included