How do I email a new page password to somebody every month?

First of all, you should wrap your cron into a method: function cronjob_once_every_month() { // Our custom cron interval: $schedules[‘every_month’] = array( ‘interval’ => 1 * MONTH_IN_SECONDS, ‘display’ => ‘Once every Month’ ); } a) set up an automated email Then you should schedule an action: if ( ! wp_next_scheduled( ‘cronjob_once_every_month’ ) ) { wp_schedule_event( … Read more

how to redirect to a custom password retrieval page

not sure i really follow you either, BUT what about filtering the wp_lostpassword_url from wp-includes/general-template.php function wp_lostpassword_url( $redirect=”” ) { $args = array( ‘action’ => ‘lostpassword’ ); if ( !empty($redirect) ) { $args[‘redirect_to’] = $redirect; } $lostpassword_url = add_query_arg( $args, network_site_url(‘wp-login.php’, ‘login’) ); return apply_filters( ‘lostpassword_url’, $lostpassword_url, $redirect ); } looks like it has a … Read more

Hide password protected posts in admin

You can use the has_password parameter of WP_Query. Here’s an example how you can hide it, for non administrators, on the edit.php screen for the post post type: /** * Hide password protected posts, for non-admins, in the case of ‘edit-post’ screen id * * @link http://wordpress.stackexchange.com/a/200426/26350 */ add_action( ‘pre_get_posts’, function( \WP_Query $q ) { … Read more

How to disable Woocommerce password recovery and use the default WordPress password reset page?

I found the solution in WP forum. Here it is: To remove the WooCommerce redirect for the “Lost Password” link, you’ll want to remove the “Lost Password” endpoint setting as found under **WooCommerce > Settings > Advanced > Account endpoints**. By simply leaving that blank, the user will be forced to use the default WordPress … Read more

Duplicate hash method for password in .NET

Here is the library: http://www.zer7.com/software/cryptsharp And this is “howtouse”: public override bool ValidateUser(string name, string password) { if (string.IsNullOrWhiteSpace(name)) return false; if (string.IsNullOrWhiteSpace(password)) return false; // this is just fetching the hash from the WP-database using BLToolkit. You can use any other way to get the hash from db 😉 UserData ud = null; using … Read more