1. Documentation
  2. Plugins
  3. WooCommerce
  4. Extensions
  5. Groups WooCommerce

Filters

groups_woocommerce_handle_woocommerce_subscription_status_updated ↑ Back to top

This filter allows to modify whether the status update for a particular subscription will process the related group memberships or not.

Arguments:

  • $handle boolean – whether to act on the subscription status update
  • $subscription WC_Subscription – the subscription
  • $new_status string – the new status
  • $old_status string – the old status

Return:

boolean whether to process the group memberships for the subscription

groups_woocommerce_show_buckets_membership ↑ Back to top

This filter allows to modify the output displayed for unlimited and time-limited memberships on the user profile page.

Arguments:

  • $membership_info string – The membership information as to be output for the particular $group_id.
  • $group_id int – The ID of the group for which the membership info is displayed.
  • $ts int – A UNIX timestamp indicating the moment of expiration of the membership or Groups_WS_Terminator::ETERNITY for unlimited memberships.

Return:

string membership info HTML

groups_woocommerce_show_membership ↑ Back to top

This filter allows to modify the group membership info displayed for a particular group within the groups_woocommerce_memberships shortcode.

Arguments:

  • $membership_info string  – The membership information to output for the $group_id.
  • $group_id int – The ID of the group for which the membership info is displayed.
  • $ts int – A UNIX timestamp indicating the moment of expiration of the membership or Groups_WS_Terminator::ETERNITY for unlimited memberships.

Return:

string membership info HTML

groups_woocommerce_show_subscriptions_style ↑ Back to top

This filter allows to modify the inline styles that are output just before the subscription info is displayed on the user profile page. This is only relevant when subscriptions are used (not unlimited or time-limited memberships).

The $style returned is output as is, i.e. it must start and end with the appropriate HTML tags <style type="css/text"> and </style>.

Arguments:

$style string – current inline styles rendered before the subscription info is output

Return:

string – the inline styles

WooCommerce - the most customizable eCommerce platform for building your online business.

  • 30 day money back guarantee
  • Support teams across the world
  • Safe & Secure online payment