/home/lojadaramacom/public_html/wp-content/themes/woodmart/inc/classes/Registry.php
return self::$instance;
}
/**
* Dynamically load missing object and assign it to the Registry property
*
* @param string $obj Object name (first char will be converted to upper case)
* @return object
*/
function __get( $obj ) {
if ( ! isset( $this->knownObjects[ $obj ] ) ) {
try {
$this->_save_object( $obj );
} catch ( Exception $e ) {
echo esc_html( $e->getTraceAsString() );
}
}
return $this->knownObjects[ $obj ];
}
private function _save_object( $obj ) {
if ( function_exists( 'mb_convert_case' ) ) {
$objname = 'WOODMART_' . mb_convert_case( $obj, MB_CASE_TITLE, 'UTF-8' );
} else {
$objname = 'WOODMART_' . ucfirst( $obj );
}
if ( is_string( $obj ) && ! isset( $this->$obj ) && class_exists( $objname ) ) {
$this->knownObjects[ $obj ] = new $objname();
}
}
/**
* Prevent users to clone the instance
*/
public function __clone() {
trigger_error( 'Clone is not allowed.', E_USER_ERROR );
}
Arguments
"Undefined array key "license""
/home/lojadaramacom/public_html/wp-content/themes/woodmart/inc/classes/Registry.php
return self::$instance;
}
/**
* Dynamically load missing object and assign it to the Registry property
*
* @param string $obj Object name (first char will be converted to upper case)
* @return object
*/
function __get( $obj ) {
if ( ! isset( $this->knownObjects[ $obj ] ) ) {
try {
$this->_save_object( $obj );
} catch ( Exception $e ) {
echo esc_html( $e->getTraceAsString() );
}
}
return $this->knownObjects[ $obj ];
}
private function _save_object( $obj ) {
if ( function_exists( 'mb_convert_case' ) ) {
$objname = 'WOODMART_' . mb_convert_case( $obj, MB_CASE_TITLE, 'UTF-8' );
} else {
$objname = 'WOODMART_' . ucfirst( $obj );
}
if ( is_string( $obj ) && ! isset( $this->$obj ) && class_exists( $objname ) ) {
$this->knownObjects[ $obj ] = new $objname();
}
}
/**
* Prevent users to clone the instance
*/
public function __clone() {
trigger_error( 'Clone is not allowed.', E_USER_ERROR );
}
Arguments
2
"Undefined array key "license""
"/home/lojadaramacom/public_html/wp-content/themes/woodmart/inc/classes/Registry.php"
55
/home/lojadaramacom/public_html/wp-content/themes/woodmart/inc/classes/Theme.php
'integrations/woocommerce/modules/quick-buy/class-main',
'integrations/woocommerce/modules/counter-visitors/class-main',
'integrations/woocommerce/modules/linked-variations/class-main',
'integrations/woocommerce/modules/unit-of-measure/class-main',
'integrations/woocommerce/modules/show-single-variations/class-main',
'integrations/woocommerce/modules/frequently-bought-together/class-main',
);
if ( did_action( 'elementor/loaded' ) ) {
$files[] = 'integrations/elementor/helpers';
}
foreach ( $files as $file ) {
require_once get_parent_theme_file_path( WOODMART_FRAMEWORK . '/' . $file . '.php' );
}
}
private function register_classes() {
foreach ( $this->register_classes as $class ) {
WOODMART_Registry::getInstance()->$class;
}
}
private function wpb_files_include() {
if ( 'wpb' !== woodmart_get_current_page_builder() || ! defined( 'WPB_VC_VERSION' ) ) {
return;
}
$files = array(
'integrations/visual-composer/functions',
'integrations/visual-composer/fields/vc-functions',
'integrations/visual-composer/fields/fields-css',
'integrations/visual-composer/fields/image-hotspot',
'integrations/visual-composer/fields/title-divider',
'integrations/visual-composer/fields/slider',
'integrations/visual-composer/fields/responsive-size',
'integrations/visual-composer/fields/responsive-spacing',
'integrations/visual-composer/fields/image-select',
'integrations/visual-composer/fields/dropdown',
Arguments
/home/lojadaramacom/public_html/wp-content/themes/woodmart/inc/classes/Theme.php
class WOODMART_Theme {
private $register_classes;
public function __construct() {
$this->register_classes = array(
'notices',
'options',
'layout',
'vctemplates',
'api',
'license',
'wpbcssgenerator',
'themesettingscss',
'pagecssfiles',
);
$this->core_plugin_classes();
$this->general_files_include();
$this->wpb_files_include();
$this->register_classes();
$this->wpb_element_files_include();
$this->shortcodes_files_include();
if ( is_admin() ) {
$this->admin_files_include();
}
$this->dashboard_files();
if ( 'elementor' === woodmart_get_current_page_builder() ) {
require_once get_parent_theme_file_path( WOODMART_FRAMEWORK . '/integrations/elementor/class-elementor.php' );
}
}
private function general_files_include() {
$files = array(
'helpers',
'functions',
'template-tags/template-tags',
'template-tags/portfolio',
/home/lojadaramacom/public_html/wp-content/themes/woodmart/functions.php
'Notices.php',
'Options.php',
'Stylesstorage.php',
'Theme.php',
'Themesettingscss.php',
'Vctemplates.php',
'Wpbcssgenerator.php',
'Registry.php',
'Pagecssfiles.php',
);
foreach ( $classes as $class ) {
require WOODMART_CLASSES . DIRECTORY_SEPARATOR . $class;
}
}
}
woodmart_load_classes();
new WOODMART_Theme();
define( 'WOODMART_VERSION', woodmart_get_theme_info( 'Version' ) );
/home/lojadaramacom/public_html/wp-settings.php
$GLOBALS['wp_locale'] = new WP_Locale();
/**
* WordPress Locale Switcher object for switching locales.
*
* @since 4.7.0
*
* @global WP_Locale_Switcher $wp_locale_switcher WordPress locale switcher object.
*/
$GLOBALS['wp_locale_switcher'] = new WP_Locale_Switcher();
$GLOBALS['wp_locale_switcher']->init();
// Load the functions for the active theme, for both parent and child theme if applicable.
foreach ( wp_get_active_and_valid_themes() as $theme ) {
$wp_theme = wp_get_theme( basename( $theme ) );
$wp_theme->load_textdomain();
if ( file_exists( $theme . '/functions.php' ) ) {
include $theme . '/functions.php';
}
}
unset( $theme, $wp_theme );
/**
* Fires after the theme is loaded.
*
* @since 3.0.0
*/
do_action( 'after_setup_theme' );
// Create an instance of WP_Site_Health so that Cron events may fire.
if ( ! class_exists( 'WP_Site_Health' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
}
WP_Site_Health::get_instance();
// Set up current user.
$GLOBALS['wp']->init();
Arguments
"/home/lojadaramacom/public_html/wp-content/themes/woodmart/functions.php"
/home/lojadaramacom/public_html/wp-config.php
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the documentation.
*
* @link https://wordpress.org/support/article/debugging-in-wordpress/
*/
if ( ! defined( 'WP_DEBUG' ) ) {
define( 'WP_DEBUG', true );
}
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
Arguments
"/home/lojadaramacom/public_html/wp-settings.php"
/home/lojadaramacom/public_html/wp-load.php
* Initialize error reporting to a known set of levels.
*
* This will be adapted in wp_debug_mode() located in wp-includes/load.php based on WP_DEBUG.
* @see https://www.php.net/manual/en/errorfunc.constants.php List of known error levels.
*/
error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
}
/*
* If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
* doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit
* of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a)
* and /blog/ is WordPress(b).
*
* If neither set of conditions is true, initiate loading the setup process.
*/
if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
/** The config file resides in ABSPATH */
require_once ABSPATH . 'wp-config.php';
} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
/** The config file resides one level above ABSPATH but is not part of another installation */
require_once dirname( ABSPATH ) . '/wp-config.php';
} else {
// A config file doesn't exist.
define( 'WPINC', 'wp-includes' );
require_once ABSPATH . WPINC . '/version.php';
require_once ABSPATH . WPINC . '/compat.php';
require_once ABSPATH . WPINC . '/load.php';
// Check for the required PHP version and for the MySQL extension or a database drop-in.
wp_check_php_mysql_versions();
// Standardize $_SERVER variables across setups.
wp_fix_server_vars();
Arguments
"/home/lojadaramacom/public_html/wp-config.php"
/home/lojadaramacom/public_html/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
Arguments
"/home/lojadaramacom/public_html/wp-load.php"
/home/lojadaramacom/public_html/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Arguments
"/home/lojadaramacom/public_html/wp-blog-header.php"