MemberPress: Remove Accordion from Courses

function mepr_remove_accordion_class( $classes ) { //Course class body $cs_index = array_search( ‘mpcs-course-with-accordion’, $classes ); if ( isset( $cs_index ) ) { unset( $classes[$cs_index] ); } //Sidebar class body $sb_index = array_search( ‘mpcs-sidebar-with-accordion’, $classes ); if ( isset( $sb_index ) )…Continue reading

Remove Product Data Tabs

function g9_remove_tabs($tabs) { unset( $tabs[‘description’] ); unset($tabs[‘reviews’]); unset($tabs[‘additional_information’]); return $tabs; } add_filter(‘woocommerce_product_tabs’, ‘g9_remove_tabs’, 98);Continue reading

Replace Variable Price With Variation Price

function g9_update_price_with_variation_price() { global $product; $price = $product->get_price_html(); wc_enqueue_js(” jQuery(document).ready(function ($) { $(document).on(‘found_variation’, ‘form.cart’, function( event, variation ) { if(variation.price_html) $(‘.summary > p.price’).html(variation.price_html); $(‘.summary .woocommerce-variation-price’).hide(); }); $(document).on(‘hide_variation’, ‘form.cart’, function( event, variation ) { $(‘.summary > p.price’).html(‘” . $price . “‘);…Continue reading