Skip to content
WPCode Library

WPCode Library

Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!

Get WPCode
See all Features

  • Features
    • Code Snippets Library
    • Smart Conditional Logic
    • Advanced Code Revisions
    • Private Cloud Library
    • Marketing Scripts & Conversion Pixels
  • Pricing
  • Snippets Library
  • Help Center
    • Docs
    • Support
  • Blog
  • Login
  • Get WPCode

Snippets library

Browse Snippets
Claim your Free Profile
Add Snippet

Category: Login

[BUG FIX] Allow Formidable Reset Link for Logged-In User

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

Display Last Login

// Display Last Login / Kiri Vadivelu / 2026 // 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…Continue reading

Change Login Appearance

// Change Login Appearance / Kiri Vadivelu / 2026 function custom_login_background() { ?>Continue reading

Remove Remember Me

// Remove Remember Me / Kiri Vadivelu / 2026 add_action(‘login_head’, ‘remove_remember_me’); function remove_remember_me() { echo ‘ ‘; }Continue reading

Change Login logo

function custom_login_logo() { echo ‘ ‘; } add_action(‘login_head’, ‘custom_login_logo’); function login_url(){ return “https://kashianupamhotel.com/”; // Your URL Here } add_filter(‘login_headerurl’, ‘login_url’);Continue reading

YOSH SAYTCHI

Continue reading

WP Login – Replace WP Logo, Logo Link, Header Text

add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://cportal.nowcoast.com/wp-content/uploads/2026/03/COA-cPortal-WPAdmin.svg’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading

me

Continue reading

Untitled Snippet

Continue reading

fitsum ketema

Continue reading

Page navigation

Previous 1 2 3 4 … 18 Next

Company

  • About
  • Careers
  • Testimonials
  • Blog
  • Affiliates
  • Contact
  • Twitter
  • Facebook

Powerful Code Features

  • Ready-made Snippets Library
  • Smart Conditional Logic
  • Advanced Auto-insert Locations
  • Global Header & Footer Scripts
  • Safe Error Handling
  • WordPress Code Generators

  • Ecommerce Conversion Pixels
  • Dynamic Content Elements
  • Reduce Number of Plugins
  • Save Snippets in Cloud
  • Easy Code Management
  • Advanced Code Revisions

Helpful Links

  • Support
  • Documentation
  • Plans & Pricing
  • WordPress Hosting
  • Start a Blog
  • Make a Website

Copyright © 2026 WPCode. WPCode® is a registered trademark of WPCode, LLC

Terms of Service
Privacy Policy
FTC Disclosure
Sitemap
WPCode Coupon

The WordPress® trademark is the intellectual property of the WordPress Foundation. Uses of the WordPress®, names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation. WPCode is not endorsed or owned by, or affiliated with, the WordPress Foundation.

Snippet Preview