PluginProbe
Theme My Login / trunk
Theme My Login vtrunk
7.2.1 7.2.0 6.1.3 6.1.4 6.2 6.2.1 6.2.2 6.2.3 6.3 6.3.1 6.3.10 6.3.11 6.3.12 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6 6.3.7 6.3.8 6.3.9 6.4 6.4.1 6.4.10 6.4.11 All 139 releases
theme-my-login / theme-my-login.php

theme-my-login.php in Theme My Login trunk, at theme-my-login.php

117 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The Theme My Login Plugin
5 *
6 * @package Theme_My_Login
7 */
8
9 /*
10 Plugin Name: Theme My Login
11 Plugin URI: https://thememylogin.com
12 Description: Creates an alternate login, registration and password recovery experience within your theme.
13 // x-release-please-start-version
14 Version: 7.2.1
15 // x-release-please-end
16 Author: Theme My Login
17 Author URI: https://thememylogin.com
18 License: GPLv2
19 License URI: https://www.gnu.org/licenses/gpl-2.0.html
20 Text Domain: theme-my-login
21 Network: true
22 */
23
24 /**
25 * Stores the version of TML.
26 *
27 * @since 7.0
28 */
29 // x-release-please-start-version
30 define( 'THEME_MY_LOGIN_VERSION', '7.2.1' );
31 // x-release-please-end
32
33 /**
34 * Stores the path to TML.
35 *
36 * @since 6.4.4
37 */
38 define( 'THEME_MY_LOGIN_PATH', plugin_dir_path( __FILE__ ) );
39
40 /**
41 * Stores the path to the plugin's main file, as registered with WordPress.
42 *
43 * @since 7.2.1
44 */
45 define( 'THEME_MY_LOGIN_FILE', dirname( THEME_MY_LOGIN_PATH ) . '/theme-my-login.php' );
46
47 /**
48 * Stores the URL to TML.
49 *
50 * @since 7.0
51 */
52 define( 'THEME_MY_LOGIN_URL', plugin_dir_url( __FILE__ ) );
53
54 /**
55 * Stores the URL to TML's extensions directory.
56 *
57 * @since 7.0
58 */
59 define( 'THEME_MY_LOGIN_EXTENSIONS_URL', 'https://thememylogin.com/extensions' );
60
61 /**
62 * Stores the URL to TML's extensions API.
63 *
64 * @since 7.0
65 */
66 define( 'THEME_MY_LOGIN_EXTENSIONS_API_URL', 'https://thememylogin.com/edd-api/products' );
67
68 /**
69 * Require files.
70 */
71 require THEME_MY_LOGIN_PATH . 'includes/class-theme-my-login.php';
72 require THEME_MY_LOGIN_PATH . 'includes/class-theme-my-login-action.php';
73 require THEME_MY_LOGIN_PATH . 'includes/class-theme-my-login-form.php';
74 require THEME_MY_LOGIN_PATH . 'includes/class-theme-my-login-form-field.php';
75 require THEME_MY_LOGIN_PATH . 'includes/class-theme-my-login-extension.php';
76 require THEME_MY_LOGIN_PATH . 'includes/class-theme-my-login-widget.php';
77 require THEME_MY_LOGIN_PATH . 'includes/actions.php';
78 require THEME_MY_LOGIN_PATH . 'includes/forms.php';
79 require THEME_MY_LOGIN_PATH . 'includes/extensions.php';
80 require THEME_MY_LOGIN_PATH . 'includes/functions.php';
81 require THEME_MY_LOGIN_PATH . 'includes/options.php';
82 require THEME_MY_LOGIN_PATH . 'includes/shortcodes.php';
83 require THEME_MY_LOGIN_PATH . 'includes/hooks.php';
84
85 if ( is_multisite() ) {
86 require THEME_MY_LOGIN_PATH . 'includes/ms-functions.php';
87 require THEME_MY_LOGIN_PATH . 'includes/ms-hooks.php';
88 }
89
90 if ( defined( 'WP_CLI' ) && WP_CLI ) {
91 require THEME_MY_LOGIN_PATH . 'includes/commands.php';
92 }
93
94 /**
95 * Load custom functions file.
96 */
97 if ( file_exists( WP_PLUGIN_DIR . '/theme-my-login-custom.php' ) ) {
98 include WP_PLUGIN_DIR . '/theme-my-login-custom.php';
99 }
100
101 // Prepare for something amazing!
102 theme_my_login();
103
104 /**
105 * Require admin files.
106 */
107 if ( is_admin() ) {
108 require THEME_MY_LOGIN_PATH . 'admin/class-theme-my-login-admin.php';
109 require THEME_MY_LOGIN_PATH . 'admin/functions.php';
110 require THEME_MY_LOGIN_PATH . 'admin/settings.php';
111 require THEME_MY_LOGIN_PATH . 'admin/extensions.php';
112 require THEME_MY_LOGIN_PATH . 'admin/hooks.php';
113
114 // Prepare for something somewhat amazing!
115 theme_my_login_admin();
116 }
117