/
custom-admin-login.php
executable file
·50 lines (44 loc) · 1.84 KB
/
custom-admin-login.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* Plugin Name: Custom Admin Login
* Plugin URI: https://github.com/jprieton/custom-admin-login
* Description: Allows you to customize the background, logo, url and caption on the WordPress login page.
* Tags: admin, login, custom, background, logo, custom admin login, login page
* Version: 1.0.8
* Requires at least: 5.2
* Tested up to: 6.0
* Author: Javier Prieto
* Author URI: https://github.com/jprieton
* Text Domain: custom-admin-login
* Domain Path: /languages/
*
* Custom Admin Login is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Custom Admin Login is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Custom Admin Login. If not, see http://www.gnu.org/licenses/gpl-3.0.txt.
*
* @package CustomAdminLogin
*/
// If this file is called directly, abort.
defined( 'ABSPATH' ) || exit;
/**
* Define plugin constants
* @since 1.0.0
*/
define( 'CustomAdminLogin\FILENAME', __FILE__ );
define( 'CustomAdminLogin\BASENAME', plugin_basename( __FILE__ ) );
define( 'CustomAdminLogin\INCLUDES', plugin_dir_path( CustomAdminLogin\FILENAME ) . 'includes' );
// Load texdomain
require_once CustomAdminLogin\INCLUDES . '/class-textdomain.php';
CustomAdminLogin\Textdomain::init();
// Initialize customizer
require_once CustomAdminLogin\INCLUDES . '/class-theme-customizer.php';
CustomAdminLogin\Theme_Customizer::init();