%k25u25%fgd5n!
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if( !class_exists( 'Windoor_Shop_Single_Metabox_Options' ) ) {
class Windoor_Shop_Single_Metabox_Options {
private static $_instance = null;
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
function __construct() {
add_filter( 'windoor_shop_product_custom_settings', array( $this, 'windoor_shop_product_custom_settings' ), 20 );
}
function windoor_shop_product_custom_settings( $options ) {
$product_options = array(
# Product New Label
array(
'id' => 'product-new-label',
'type' => 'switcher',
'title' => esc_html__('Add "New" label', 'windoor-shop'),
),
array(
'id' => 'product-notes',
'type' => 'textarea',
'title' => esc_html__('Product Notes', 'windoor-shop')
)
);
$options = array_merge( $options, $product_options );
return $options;
}
}
}
Windoor_Shop_Single_Metabox_Options::instance();