HTML
¿Tienes Madera de AV?Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
¿Tienes Madera de AV?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
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }Continue reading
function current_year_shortcode() { $year = date(‘Y’); return $year; } add_shortcode(‘current_year’, ‘current_year_shortcode’);Continue reading
html body div#om-{{id}}.Campaign.CampaignType–slide { right: 40px !important; bottom: 100px !important; }Continue reading
function custom_login_background() { ?>Continue reading
function custom_login_logo() { // Replace with your actual logo URL $logo_url = ‘https://yourdomain.com/path-to-your-logo.png’; // Replace with your actual site URL $site_url = home_url(); echo ‘ ‘; } add_action( ‘login_enqueue_scripts’, ‘custom_login_logo’ ); function custom_login_logo_url() { return home_url(); // Replace with custom…Continue reading
add_action(‘login_head’, ‘remove_remember_me’); function remove_remember_me() { echo ‘ ‘; }Continue reading
// Disable Password Reset Functionality function disable_password_reset() { return false; } add_filter(‘allow_password_reset’, ‘disable_password_reset’); // Remove “Lost Your Password?” Link function remove_lostpassword_text($text) { if ($text == ‘Lost your password?’) { $text = ”; } return $text; } add_filter(‘gettext’, ‘remove_lostpassword_text’); // Block…Continue reading
function restrict_dashboard_access() { // Allow AJAX requests to proceed if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) { return; } // Check if user is not an administrator if ( ! current_user_can( ‘administrator’ ) && is_admin() ) { wp_redirect( home_url()…Continue reading