PATH:
home
/
thebhoeo
/
public_html
/
booksfinders.com
/
wp-content__db40bc3
/
themes
/
woodmart
<?php /** * * The framework's functions and definitions */ define( 'WOODMART_THEME_DIR', get_template_directory_uri() ); define( 'WOODMART_THEMEROOT', get_template_directory() ); define( 'WOODMART_IMAGES', WOODMART_THEME_DIR . '/images' ); define( 'WOODMART_SCRIPTS', WOODMART_THEME_DIR . '/js' ); define( 'WOODMART_STYLES', WOODMART_THEME_DIR . '/css' ); define( 'WOODMART_FRAMEWORK', '/inc' ); define( 'WOODMART_DUMMY', WOODMART_THEME_DIR . '/inc/dummy-content' ); define( 'WOODMART_CLASSES', WOODMART_THEMEROOT . '/inc/classes' ); define( 'WOODMART_CONFIGS', WOODMART_THEMEROOT . '/inc/configs' ); define( 'WOODMART_HEADER_BUILDER', WOODMART_THEME_DIR . '/inc/header-builder' ); define( 'WOODMART_ASSETS', WOODMART_THEME_DIR . '/inc/admin/assets' ); define( 'WOODMART_ASSETS_IMAGES', WOODMART_ASSETS . '/images' ); define( 'WOODMART_API_URL', 'https://xtemos.com/licenses/api/' ); define( 'WOODMART_DEMO_URL', 'https://woodmart.xtemos.com/' ); define( 'WOODMART_PLUGINS_URL', WOODMART_DEMO_URL . 'plugins/' ); define( 'WOODMART_DUMMY_URL', WOODMART_DEMO_URL . 'dummy-content-new/' ); define( 'WOODMART_TOOLTIP_URL', WOODMART_DEMO_URL . 'theme-settings-tooltips/' ); define( 'WOODMART_SLUG', 'woodmart' ); define( 'WOODMART_CORE_VERSION', '1.0.36' ); define( 'WOODMART_WPB_CSS_VERSION', '1.0.2' ); if ( ! function_exists( 'woodmart_load_classes' ) ) { function woodmart_load_classes() { $classes = array( 'Singleton.php', 'Api.php', 'Googlefonts.php', 'Config.php', 'Layout.php', 'License.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' ) ); // Automatically Delete Woocommerce Images After Deleting a Product add_action( 'before_delete_post', 'delete_product_images', 10, 1 ); function delete_product_images( $post_id ) { $product = wc_get_product( $post_id ); if ( !$product ) { return; } $featured_image_id = $product->get_image_id(); $image_galleries_id = $product->get_gallery_image_ids(); if( !empty( $featured_image_id ) ) { wp_delete_post( $featured_image_id ); } if( !empty( $image_galleries_id ) ) { foreach( $image_galleries_id as $single_image_id ) { wp_delete_post( $single_image_id ); } } }
[-] 404.php
[edit]
[-] content-portfolio-slider.php
[edit]
[+]
vc_templates
[-] archive-portfolio.php
[edit]
[-] style.min.css
[edit]
[-] style.css
[edit]
[+]
inc
[+]
css
[-] single-woodmart_slide.php
[edit]
[-] single.php
[edit]
[+]
fonts
[-] single-woodmart_layout.php
[edit]
[+]
files
[+]
images
[-] content-meta-image.php
[edit]
[-] content-slider.php
[edit]
[+]
languages
[-] maintenance.php
[edit]
[-] functions.php
[edit]
[-] content-portfolio.php
[edit]
[-] sidebar-footer.php
[edit]
[+]
woocommerce
[-] searchform.php
[edit]
[-] sidebar.php
[edit]
[-] page.php
[edit]
[-] header.php
[edit]
[+]
..
[-] content.php
[edit]
[-] wpml-config.xml
[edit]
[-] index.php
[edit]
[-] taxonomy-project-cat.php
[edit]
[+]
header-elements
[-] comments.php
[edit]
[-] screenshot.png
[edit]
[-] single-portfolio.php
[edit]
[-] single-cms_block.php
[edit]
[-] toolset-config.json
[edit]
[-] content-none.php
[edit]
[-] portfolio.php
[edit]
[+]
js
[-] error_log
[edit]
[-] author-bio.php
[edit]
[-] footer.php
[edit]