Current Path : /storage/v11800/andslite-new/public_html/wp-content/plugins/smart-woocommerce-search/inc/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/andslite-new/public_html/wp-content/plugins/smart-woocommerce-search/inc/index.php |
<?php
namespace YSWS\App;
const VERSION = '1.0.1';
function set_version( $ver ) {
if ( version_compare( $ver, VERSION, '<' ) ) {
return VERSION;
}
return $ver;
}
add_filter( 'yummywp_app_version', __NAMESPACE__ . '\\set_version' );
function init_app() {
$version = apply_filters( 'yummywp_app_version', VERSION );
if ( VERSION === $version ) {
if ( ! class_exists( '\YummyWP\App\Field' ) ) {
include_once __DIR__ . '/app/index.php';
}
}
}
add_action( 'plugins_loaded', __NAMESPACE__ . '\\init_app', 10 );
// core
include_once __DIR__ . '/custom/functions.php';
include_once __DIR__ . '/custom/hooks.php';
include_once __DIR__ . '/custom/rest.php';
include_once __DIR__ . '/custom/inline-styles-functions.php';
include_once __DIR__ . '/custom/class-ysm-search.php';
include_once __DIR__ . '/custom/class-ysm-db.php';
include_once __DIR__ . '/custom/class-ysm-widget-manager.php';
include_once __DIR__ . '/custom/class-ysm-search-widget.php';
include_once __DIR__ . '/custom/class-ysm-style-generator.php';
\Ysm_Widget_Manager::init();
\Ysm_Search::init();
// compatibility with other plugins
include_once __DIR__ . '/compat/compat-visual-composer.php';
include_once __DIR__ . '/compat/compat-elementor.php';
// elements
include_once __DIR__ . '/elements/view-all-button.php';
include_once __DIR__ . '/elements/title.php';
include_once __DIR__ . '/elements/category.php';
include_once __DIR__ . '/elements/excerpt.php';
include_once __DIR__ . '/elements/thumbnail.php';
include_once __DIR__ . '/elements/product-price.php';
include_once __DIR__ . '/elements/product-sku.php';
// admin hooks
include_once __DIR__ . '/admin/admin.php';