| Server IP : 195.58.49.151 / Your IP : 216.73.217.39 Web Server : Apache/2.4.67 (Debian) mod_fcgid/2.3.9 OpenSSL/3.0.20 System : Linux hs.hsdns.ru 6.1.0-48-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.172-1 (2026-05-15) x86_64 User : antilam ( 1007) PHP Version : 8.4.22 Disable Function : system,passthru,popen MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/antilam/web/antilam.ru/public_html/wp-content/plugins/woodmart-core/inc/ |
Upload File : |
<?php
/**
* Widgets.
*
* @package woodmart
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Direct access not allowed.
}
if ( ! function_exists( 'woodmart_product_360_view_meta' ) ) {
/**
* Add the 360 product view images metabox to the product edit screen.
*/
function woodmart_product_360_view_meta() {
if ( ! function_exists( 'woodmart_get_opt' ) ) {
return;
}
add_meta_box( 'woocommerce-product-360-images', esc_html__( 'Product 360 View Gallery (optional)', 'woodmart' ), 'woodmart_360_metabox_output', 'product', 'side', 'low' );
}
add_action( 'add_meta_boxes', 'woodmart_product_360_view_meta', 50 );
}
if ( ! function_exists( 'woodmart_sguide_add_metaboxes' ) ) {
/**
* Add size guide metaboxes.
*/
function woodmart_sguide_add_metaboxes() {
if ( ! function_exists( 'woodmart_get_opt' ) || ! woodmart_get_opt( 'size_guides' ) ) {
return;
}
// Add table metaboxes to size guide
add_meta_box( 'woodmart_sguide_metaboxes', esc_html__( 'Create/modify size guide table', 'woodmart' ), 'woodmart_sguide_metaboxes', 'woodmart_size_guide', 'normal', 'default' );
// Add metaboxes to product
add_meta_box( 'woodmart_sguide_dropdown_template', esc_html__( 'Choose size guide', 'woodmart' ), 'woodmart_sguide_dropdown_template', 'product', 'side' );
// Add category metaboxes to size guide
add_meta_box( 'woodmart_sguide_category_template', esc_html__( 'Choose product categories', 'woodmart' ), 'woodmart_sguide_category_template', 'woodmart_size_guide', 'side' );
// Add hide table checkbox to size guide
add_meta_box( 'woodmart_sguide_hide_table_template', esc_html__( 'Hide size guide table', 'woodmart' ), 'woodmart_sguide_hide_table_template', 'woodmart_size_guide', 'side' );
}
add_action( 'add_meta_boxes', 'woodmart_sguide_add_metaboxes' );
}