function get_wc_sponsorship_sidebar($name) { global $product; if (is_single() && WC_Sponsorship_Product::is_sponsorship($product) && 'Sponsorship Sidebar' != $name) { load_template($this->plugin_path() . '/classes/class-wc-sponsorship-sidebar.php', true); static $class = "wc-sponsorship-hidden"; $this->wc_sponsorship_sidebar_class_replace($class); } }