Progressive Password Field
// Progressive Password Field / Kiri Vadivelu / 2026 add_action(‘login_enqueue_scripts’, ‘field_without_script’); function field_without_script() { echo ‘ ‘; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
// Progressive Password Field / Kiri Vadivelu / 2026 add_action(‘login_enqueue_scripts’, ‘field_without_script’); function field_without_script() { echo ‘ ‘; }Continue reading
// Disable User Login / Kiri Vadivelu / 2026 function disable_user_login( $user ) { if ( is_wp_error( $user ) ) { return $user; } if ( is_a( $user, ‘WP_User’ ) ) { $disabled_user_ids = array( 10 ); // User IDs…Continue reading
// Hide Login Errors add_filter( ‘login_errors’, function ( $error ) { // Customize the Message return ‘Something is wrong!’; } ); // Remove Login Links add_action( ‘login_head’, ‘remove_login_links’ ); function remove_login_links() { add_filter( ‘login_site_html_link’, ‘__return_empty_string’ ); // Back to Link…Continue reading
add_action( ‘wp_enqueue_scripts’, function() { if ( ! class_exists( ‘FrmRegGlobalSettings’ ) || ! class_exists( ‘FrmProAppController’ ) ) { return; } $global_settings = new FrmRegGlobalSettings(); $reset_page_id = (int) $global_settings->get_global_page( ‘resetpass_page’ ); if ( ! $reset_page_id || ! is_page( $reset_page_id ) ) {…Continue reading
google-site-verification=2qRnmMOU51GWk3rx-tL2TwbUAd1kOVvjw9caXI6AvrA google-site-verification=2qRnmMOU51GWk3rx-tL2TwbUAd1kOVvjw9caXI6AvrAContinue reading
add_filter( ‘pre_do_shortcode_tag’, static function ( $output, $tag, $atts ) { if ( ‘frm-reset-password’ !== $tag || ! is_user_logged_in() || ! isset( $_GET[‘key’], $_GET[‘login’] ) || ! class_exists( ‘FrmRegResetPWForm’ ) ) { return $output; } $key = sanitize_text_field( wp_unslash( $_GET[‘key’] )…Continue reading
// Record last login timestamp add_action( ‘wp_login’, function( $user_login, $user ) { update_user_meta( $user->ID, ‘last_login’, current_time( ‘mysql’ ) ); }, 10, 2 ); // Add User ID and Last Login columns add_filter( ‘manage_users_columns’, function( $columns ) { // Add User…Continue reading
function custom_login_background() { ?>Continue reading
add_action(‘login_head’, ‘remove_remember_me’); function remove_remember_me() { echo ‘ ‘; }Continue reading