## Remove action that incudes external class

Question

I’m attempting to achieve something similar to the following question, but I’m having difficulty attaining the desired result – Remove an action from an external Class

The WordPress theme Neve is adding markup to a page using the following function. I would like to remove this markup.

class Woocommerce {

add_action( 'neve_before_shop_loop_content', array( $this, 'add_header_bits' ), 0 ); } public function add_header_bits() { if ( ! is_shop() && ! is_product() && ! is_product_category() && ! is_product_taxonomy() && ! is_product_tag() ) { return; } echo '<div class="nv-bc-count-wrap">'; do_action( 'neve_bc_count' ); echo '</div>'; if ( is_product() ) { return; } echo '<div class="nv-woo-filters">';$this->sidebar_toggle();
echo '</div>';
}

}


Please note, the above is a very condensed version of the code that the theme uses to add the markup. The specific file of the theme within which this code is implemented can be viewed here.

Generally this would be very easy to achieve using remove_action but the action includes a class, which has me stumped.

add_action( 'neve_before_shop_loop_content', array( $this, 'add_header_bits' ), 0 );  I’m not greatly familiar with classes. I’ve used the following function in a plugin to try and remove the action. function remove_markup() { global$woocommerce;
}