Overview

Classes

  • Hide_Categories_Products_WC

Functions

  • Hide_Categories_Products_WC
  • Overview
  • Class

Class Hide_Categories_Products_WC

Located at hide-categories-products-wc.php
Methods summary
public
# __construct( )
public
# init( )
public
# register_hooks( )
public array
# get_exluded_cats( boolean $ids = false )

Get the product cats that hide products

Get the product cats that hide products

Parameters

$ids
if true, function will return ids, false, return terms object

Returns

array
array of terms or term ids
public array
# ignore_hidden_terms( $terms, $post_id )

Ignore the hidden categories for product add on display

Ignore the hidden categories for product add on display

Returns

array
array of term
public array
# get_hidden_cats( )

Get the product cats that are hidden

Get the product cats that are hidden

Returns

array
array of term ids
public array
# storefront_shortcode_filter( array $params )

Exclude hidden products on storefront shortcode

Exclude hidden products on storefront shortcode

Parameters

$params
shortcode parameters

Returns

array
shortcode parameters
public array
# term_filter( array $params )

Exclude hidden cats on storefront shortcode

Exclude hidden cats on storefront shortcode

Parameters

$params
shortcode parameters

Returns

array
shortcode parameters
public object
# custom_pre_get_posts_query( object $q )

Exclude products from a particular category on the store

Exclude products from a particular category on the store

Parameters

$q
WP_Query

Returns

object
$q WP_Query
public array
# hide_hidden_categories_single_product( array $terms, integer $post_ID, object $taxonomy )

Hide hidden categories on single product pages

Hide hidden categories on single product pages

Parameters

$terms
$post_ID
$taxonomy

Returns

array
array of terms
public array
# woocommerce_get_sections_products( array $sections )

Add a subsection to product settings in WC

Add a subsection to product settings in WC

Parameters

$sections

Returns

array
$sections
public array
# woocommerce_get_settings_products( array $settings, string $current_section )

Populate subsection in product settings in WC

Populate subsection in product settings in WC

Parameters

$settings
wp_settings
$current_section

Returns

array
$settings wp_settings
public
# woocommerce_before_settings_products( )

Add div to tab setting

Add div to tab setting

public
# woocommerce_after_settings_products( )

Add div after tab setting

Add div after tab setting

public
# posts_search( $search, $wp_query )

Hide products from hidden categories on the store

Hide products from hidden categories on the store

Properties summary
public $dirname
#
public $baseurl
#
API documentation generated by ApiGen