Title: Wp e commerce customer
Last modified: August 22, 2016

---

# Wp e commerce customer

 *  Resolved [wuesse](https://wordpress.org/support/users/walterbmw/)
 * (@walterbmw)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-e-commerce-customer/)
 * Congratulations for this plugin, simple but great.
    I have a question:
 * Use wp-e commerce and would like to hide products, categories of products or 
   subscriptions.
 * How can I do?
 * Thank you very much.
 * [https://wordpress.org/plugins/hide-this/](https://wordpress.org/plugins/hide-this/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andrés Villarreal](https://wordpress.org/support/users/andrezrv/)
 * (@andrezrv)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wp-e-commerce-customer/#post-5260739)
 * Hi, sorry for the delayed answer.
 * This plugin doesn’t have a default integration with WooCommerce, so it depends
   on what you need to hide. If it’s a whole product from a list of products, I 
   think it would be better for you to hook into some WooCommerce filter to change
   the post query, but the guys at the WooCommerce support forum will give you better
   advise than me on this.
 * However, if you just need to hide a part of a product, you can use the plugin
   functionality in your code passing the shortcode arguments as an array to the
   Hide_This class.
 * Here’s an example of how it can be done:
 *     ```
       // Put the content you want to show or hide conditionally inside a variable.
       $content = 'My HTML contents.';
   
       if ( class_exists( 'Hide_This' ) ) {
       	// Construct an array with the shortcode arguments.
       	$atts = array(
       		'for'     => 'all',
       		'exclude' => 'username:foo',
       	);
   
       	$hide_this = new Hide_This( $atts, $content );
   
       	echo $hide_this->content;
       } else {
       	echo $content;
       }
       ```
   
 * Please note that the `$content` variable can be any kind of data: a string, an
   integer, an object, etc.
 * You can see the full list of arguments and accepted values here: [https://wordpress.org/plugins/hide-this/](https://wordpress.org/plugins/hide-this/).
 * Hope this helps 🙂

Viewing 1 replies (of 1 total)

The topic ‘Wp e commerce customer’ is closed to new replies.

 * ![](https://ps.w.org/hide-this/assets/icon-256x256.png?rev=1638288)
 * [Hide This](https://wordpress.org/plugins/hide-this/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hide-this/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hide-this/)
 * [Active Topics](https://wordpress.org/support/plugin/hide-this/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hide-this/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hide-this/reviews/)

## Tags

 * [subscriptions](https://wordpress.org/support/topic-tag/subscriptions/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrés Villarreal](https://wordpress.org/support/users/andrezrv/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/wp-e-commerce-customer/#post-5260739)
 * Status: resolved