PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
plugins
/
woocommerce
/
dashboard
/
meta-box
<?php if ( ! function_exists( 'webon_core_add_product_single_meta_box' ) ) { /** * Function that add general options for this module */ function webon_core_add_product_single_meta_box() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => array( 'product' ), 'type' => 'meta', 'slug' => 'product', 'title' => esc_html__( 'Product', 'webon-core' ), 'layout' => 'tabbed' ) ); if ( $page ) { $product_list_tab = $page->add_tab_element( array( 'name' => 'tab-product-list', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Product List Settings', 'webon-core' ), 'description' => esc_html__( 'Product list settings', 'webon-core' ) ) ); $product_list_tab->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_product_list_image', 'title' => esc_html__( 'Product List Image', 'webon-core' ), 'description' => esc_html__( 'Upload image to be displayed on product list instead of featured image', 'webon-core' ) ) ); $product_list_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_masonry_image_dimension_product', 'title' => esc_html__( 'Image Dimension', 'webon-core' ), 'description' => esc_html__( 'Choose an image layout for product list. If you are using fixed image proportions on the list, choose an option other than default', 'webon-core' ), 'options' => webon_core_get_select_type_options_pool( 'masonry_image_dimension' ) ) ); $product_list_tab->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_show_new_sign', 'title' => esc_html__( 'Show New Sign', 'webon-core' ), 'description' => esc_html__( 'Enabling this option will show "New Sign" mark on product.', 'webon-core' ), 'options' => webon_core_get_select_type_options_pool( 'no_yes' ), 'default_value' => 'no' ) ); // Hook to include additional options after module options do_action( 'webon_core_action_after_product_single_meta_box_map', $page, $product_list_tab ); } } add_action( 'webon_core_action_default_meta_boxes_init', 'webon_core_add_product_single_meta_box' ); }
[+]
..
[-] product-meta-box.php
[edit]