-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSACF.php
42 lines (36 loc) · 1.33 KB
/
SACF.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
<?php
/*
Plugin Name: Super Advanced Custom Fields
Plugin URI: https://kyser.io/SACF
Description: ACF Pro Supercharged
Version: 0.0.0.5
Author: Tommy Kyser
Author URI: https://kyser.io
Text Domain: SACF
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/*ini_set( 'display_errors', 1 );
ini_set( 'display_startup_errors', 1 );
error_reporting( E_ALL );
ini_set( 'xdebug.var_display_max_data', '-1' );*/
/* ================================================================================================ */
/* WP Plugin Update Server */
/* ================================================================================================ */
require_once plugin_dir_path( __FILE__ ) . 'lib/wp-package-updater/class-wp-package-updater.php';
$prefix_updater = new WP_Package_Updater(
'https://wp.kyser.dev',
wp_normalize_path( __FILE__ ),
wp_normalize_path( plugin_dir_path( __FILE__ ) )
);
/* ================================================================================================ */
function run() {
require_once plugin_dir_path( __FILE__ ) . 'plugin-loader.php';
}
add_action( 'plugins_loaded', 'run', 10, 0 );
function load_SACF_init() // Classes :: Hook = init
{
require __DIR__ . '/loader.php';
}
add_action( 'acf/init', 'load_SACF_init', 10 );