forked from RadoslavGeorgiev/ultimate-fields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathultimate-fields.php
34 lines (31 loc) · 1.1 KB
/
ultimate-fields.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
<?php
/**
* Plugin name: Ultimate Fields
* Version: 3.0.1
* Plugin URI: https://www.ultimate-fields.com/
* Author: Radoslav Georgiev
* Author URI: http://rageorgiev.com/
* Copyright: Radoslav Georgiev
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Domain path: /languages
* Text Domain: ultimate-fields
* Description: Ultimate Fields is a plugin, that allows you to add custom fields in many places throughout the WordPress administration area, supporting a total of more than 30 field types, including repeaters, layouts and etc.
* Requires at least: 4.9
*/
/**
* Loads the files of the plugin.
*
* @since 3.0
*/
add_action( 'plugins_loaded', 'load_ultimate_fields', 9 );
function load_ultimate_fields() {
// Check if Ultimate Fields Pro (priority 8) has already been loaded
if( function_exists( 'ultimate_fields' ) ) {
return;
}
define( 'ULTIMATE_FIELDS_PLUGIN_FILE', __FILE__ );
define( 'ULTIMATE_FIELDS_LANGUAGES_DIR', basename( __DIR__ ) . '/languages/' );
require_once( 'core/ultimate-fields.php' );
require_once( 'ui/ultimate-fields-ui.php' );
}