49 lines
1.9 KiB
PHP
49 lines
1.9 KiB
PHP
<?php
|
|
|
|
define( 'THINKAI_ROOT', get_template_directory() . '/' );
|
|
|
|
require_once get_template_directory() . '/includes/functions/functions.php';
|
|
include_once get_template_directory() . '/includes/classes/base.php';
|
|
include_once get_template_directory() . '/includes/classes/dotnotation.php';
|
|
include_once get_template_directory() . '/includes/classes/header-enqueue.php';
|
|
include_once get_template_directory() . '/includes/classes/options.php';
|
|
include_once get_template_directory() . '/includes/classes/ajax.php';
|
|
include_once get_template_directory() . '/includes/classes/common.php';
|
|
include_once get_template_directory() . '/includes/classes/bootstrap_walker.php';
|
|
include_once get_template_directory() . '/includes/classes/bootstrap_walker-mobile.php';
|
|
include_once get_template_directory() . '/includes/library/class-tgm-plugin-activation.php';
|
|
require_once get_template_directory() . '/includes/library/hook.php';
|
|
|
|
// Merlin demo import.
|
|
require_once get_template_directory() . '/demo-import/class-merlin.php';
|
|
require_once get_template_directory() . '/demo-import/merlin-config.php';
|
|
require_once get_template_directory() . '/demo-import/merlin-filters.php';
|
|
|
|
add_action( 'after_setup_theme', 'thinkai_wp_load', 5 );
|
|
|
|
function thinkai_wp_load() {
|
|
|
|
defined( 'THINKAI_URL' ) or define( 'THINKAI_URL', get_template_directory_uri() . '/' );
|
|
define( 'THINKAI_KEY','!@#thinkai');
|
|
define( 'THINKAI_URI', get_template_directory_uri() . '/');
|
|
|
|
if ( ! defined( 'THINKAI_NONCE' ) ) {
|
|
define( 'THINKAI_NONCE', 'thinkai_wp_theme' );
|
|
}
|
|
|
|
( new \THINKAI\Includes\Classes\Base )->loadDefaults();
|
|
( new \THINKAI\Includes\Classes\Ajax )->actions();
|
|
|
|
}
|
|
|
|
add_action( 'init', 'thinkai_bunch_theme_init');
|
|
function thinkai_bunch_theme_init()
|
|
{
|
|
$bunch_exlude_hooks = include_once get_template_directory(). '/includes/resource/remove_action.php';
|
|
foreach( $bunch_exlude_hooks as $k => $v )
|
|
{
|
|
foreach( $v as $value )
|
|
remove_action( $k, $value[0], $value[1] );
|
|
}
|
|
|
|
} |