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