function check_disposable_email_domains($user_id) { // Λήψη του email του χρήστη με το user ID $user_info = get_userdata($user_id); $user_email = $user_info->user_email; // Extensive list of temporary email domains it wants you to block $blocked_domains = array( ‘secmail.pro’, ‘secmail.net’, ‘secmail.org’, ‘secmail.com’, ‘tempmail.com’,’1secmail.com’, ’10minutemail.com’,…Continue reading
function add_custom_message_to_username_field() { ?>Continue reading
function generate_student_number( $user_id ) { // Generate a unique student number, e.g., STU + random 6 digits $student_number = ‘STU-‘ . strtoupper( wp_generate_password( 6, false ) ); // Save the student number to user meta update_user_meta( $user_id, ‘student_number’, $student_number );…Continue reading
function kill_math_on_login() { remove_all_actions( ‘mepr-forgot-password-form’ ); remove_all_actions( ‘mepr-login-form-before-submit’ ); remove_all_filters( ‘mepr-validate-forgot-password’ ); remove_all_filters( ‘mepr-validate-login’ ); } add_action( ‘plugins_loaded’, ‘kill_math_on_login’ );Continue reading
function mepr_change_uname_or_email_text() { return ‘Custom text’; } add_filter(‘mepr-login-uname-or-email-str’, ‘mepr_change_uname_or_email_text’ );Continue reading