User Without Email?

It’s possible, just not so easily via the Users page without some hackery. The WordPress Function wp_create_user will let you insert users without email addresses, so a little custom plugin to accept a login name and password, and a call to wp_insert_user or wp_update_user should work for you. Unfortunately I don’t have time to code … Read more

Create WordPress User in backend, and automatically create a new post in Custom Post Type with user uame as the Title in the post

Modified your code above to post to the custom post type “Bookings,” set to draft, and use the user ID number as the post title. I also added a return value for the new post id so redirecting to that id or linking to it is much easier. add_action( ‘user_register’, ‘myplugin_registration_save’, 10, 1 ); function … Read more

WordPress 5.8 – Hide or Remove personal fields from admin Profile page

This is working for me in 5.8. Works in “adding new user” and in “edit user”. “Public display name” managed with a plugin. The code: // Remove fields from Admin profile page if ( ! function_exists( ‘cor_remove_personal_options’ ) ) { function cor_remove_personal_options( $subject ) { $subject = preg_replace(‘#<h2>’.__(“Personal Options”).'</h2>#s’, ”, $subject, 1); // Remove the … Read more

Make e-Mail optional on Woocommerce sign up

Try this code in functions.php. Since it is a requirement in billing, we need to set it as false. // For billing email – Make them not required add_filter( ‘woocommerce_billing_fields’, ‘filter_billing_fields’, 20, 1 ); function filter_billing_fields( $billing_fields ) { // Only on checkout page if( ! is_checkout() ) return $billing_fields; $billing_fields[‘billing_email’][‘required’] = false; return $billing_fields; … Read more

Wrong activation/confirmation link in email

It seems to use (src): $message .= network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user_login ), ‘login’ ) . ‘&wp_lang=’ . $locale . “\r\n\r\n”; but not wp_lostpassword_url(), most likely because of the extra arguments, like key and wp_lang and a different action value. You could look into the network_site_url filter during the lostpassword_post action, that is fired within … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)