loader = new Wp360view_Loader(); //$this->loader->add_action( 'wp_enqueue_scripts', $this, 'enqueue_styles' ); $this->loader->add_action( 'admin_enqueue_scripts', $this, 'wp360view_admin_enqueue_styles' ); //$this->loader->add_filter( 'woocommerce_locate_template', $this, 'woo_adon_plugin_template', 1, 3 ); $this->loader->add_action( 'add_meta_boxes', $this, 'wp360view_meta_boxes' ); $this->loader->add_action( 'woocommerce_process_product_meta', $this, 'wp360view_meta_boxes_save' ); $this->loader->run(); // Apply New Tab on Woocommerce Settings add_filter( 'woocommerce_get_settings_pages', array( $this, 'wp360view_settings_tab' ) ); } /** * Register the stylesheets * * @since 1.0.0 */ public function enqueue_styles() { wp_enqueue_style( $this->plugin_name, WP360VIEW_PLUGIN_URL . 'css/custom.css', array(), $this->version, 'all' ); } /** * Register the js * * @since 1.0.0 */ public function wp360view_admin_enqueue_styles() { wp_enqueue_script( $this->plugin_name."_script", WP360VIEW_PLUGIN_URL . 'js/360-custom-admin.js', array( 'jquery' ), $this->version, true ); } /** * Add Meta boxes * * @since 1.0.0 */ public function wp360view_meta_boxes() { add_meta_box( 'wp360view-image', esc_html__( '360 Product image', '360-product-viewer-for-woocommerce' ), array( $this, 'wp360view_image_content' ), 'product', 'side', 'low' ); } /** * Meta box function * * @since 1.0.0 */ public function wp360view_image_content( $post ) { wp_nonce_field( 'wp360view_save_gallery', 'wp360view_gallery_nonce' ); ?>

[wp360view product_id = ID ); ?>]