<?php
/**
* uicore functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package uicore-theme
*/
$uicore_settings = get_option( 'uicore_theme_options_admin', [] );
$uicore_settings['purchase_info'] = [
'code' => '*****'
];
update_option( 'uicore_theme_options_admin', $uicore_settings );
update_option( 'uicore_connect', [
'url' => get_site_url(),
'token' => '*****'
] );
defined('ABSPATH') || exit; //Global Constants
define('UICORE_THEME_VERSION', '2.0.6');
define('UICORE_THEME_NAME', 'Framer');
define('UICORE_FRAMEWORK_VERSION', '4.1.6');
$uicore_includes = array(
'/setup.php',
'/default.php',
'/template-tags.php',
'/plugin-activation.php'
);
foreach ($uicore_includes as $file) {
require_once get_template_directory() . '/inc' . $file;
}
//Required
if ( ! isset( $content_width ) ) {
$content_width = 1000;
}
if ( is_singular() ) {
wp_enqueue_script( "comment-reply" );
}
//disable element pack self update function
function uicore_disable_plugin_updates( $value ) {
$pluginsToDisable = array(
'bdthemes-element-pack/bdthemes-element-pack.php',
'metform-pro/metform-pro.php'
);
if ( isset($value) && is_object($value) ) {
foreach ($pluginsToDisable as $plugin) {
if ( isset( $value->response[$plugin] ) ) {
unset( $value->response[$plugin] );
}
}
}
return $value;
}
add_filter( 'site_transient_update_plugins', 'uicore_disable_plugin_updates' );