File manager - Edit - /var/www/wordpress_preproduction/wp-content/mu-plugins/mu-login.php
Back
<?php if (!defined('ABSPATH')) die('Restricted Area'); /* * Plugin Name: Custom WordPress Login * Description: Customize WordPress login page. * Version: 20160612 * Author: Aurélien Denis (Neticpro) * Author URI: http://neticpro.com/ */ /* Custom Login Link */ function ntp_url_login() { $url = home_url(); return $url; } add_filter('login_headerurl', 'ntp_url_login'); /* 'title' Tag on Login Form */ function ntp_url_title() { $slogan = get_option('blogdescription'); return $slogan; } add_filter('login_headertext', 'ntp_url_title'); /* Custom Login Logo */ function ntp_login_css() { /* Custom CSS */ $uri_login_css = plugins_url('css/login.css', __FILE__); wp_enqueue_style('login_css', $uri_login_css); /* Custom Logo */ $custom_logo_url = get_stylesheet_directory_uri() . '/images/catalunya-experience-logo.svg'; $custom_logo_width = 170; $custom_logo_height = 100; if ($custom_logo_url) { echo '<style> h1 a{ background-image:url("'.$custom_logo_url.'")!important; background-size:'.$custom_logo_width.'px '.$custom_logo_height.'px!important; } .login h1 a { height:'.$custom_logo_height.'px; width:'.$custom_logo_width.'px; } </style>'; } } add_action('login_head', 'ntp_login_css'); add_filter('login_errors', 'ntp_login_css'); /* Remember Me Always Checked */ function ntp_login_checked_remember_me() { echo "<script>document.getElementById('rememberme').checked = true;</script>"; } add_filter('login_footer', 'ntp_login_checked_remember_me'); /* Remove Shake Effect */ function ntp_login_error() { remove_action('login_head', 'wp_shake_js', 12); } add_action('login_head', 'ntp_login_error');
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings