Search
Actions / Filters Archives - WP Global Cart
301
archive,tax-documentation_category,term-actions-filters,term-301,theme-awake,eltd-core-1.1,woocommerce-no-js,awake child-child-ver-1.0.0,awake-ver-1.0,eltd-smooth-scroll,eltd-smooth-page-transitions,eltd-mimic-ajax,eltd-grid-1200,eltd-blog-installed,eltd-default-style,eltd-fade-push-text-top,eltd-header-standard,eltd-sticky-header-on-scroll-down-up,eltd-default-mobile-header,eltd-sticky-up-mobile-header,eltd-menu-item-first-level-bg-color,eltd-dropdown-slide-from-top,eltd-,eltd-fullscreen-search eltd-search-fade,eltd-side-menu-slide-from-right,wpb-js-composer js-comp-ver-6.3.0,vc_responsive
 

Archive

woogc/show_network_orders

Name: woogc/show_network_orders Type: Filter Arguments: $status The filter can be used to show the Network Orders interface to other shops in the MultiSite environment. The following code example, show the interface for shops ID's 2 and 3: add_filter('woogc/show_network_orders', 'WooGC_show_network_orders'); function WooGC_show_network_orders( $status ) { global $blog_id; ...

View More

woogc/orders/product_meta/ignore

Filter
woogc/orders/product_meta/ignore
Filter being used when retrieving a order product. Should return an array with the product meta fields to ignore. Example add_action('woogc/orders/product_meta/ignore', 'my_woogc_orders_product_meta_ignore'); function my_woogc_orders_product_meta_ignore($ignore) { $ignore[] = 'another_custom_field'; return $ignore; ...

View More

woogc/options/options_html

Action
woogc/options/options_html
Action being used when options output. Should be used to add more options Example add_action('woogc/options/options_html', 'my_woogc_options_options_html'); function my_woogc_options_options_html() { ?> <select name="my_custom_option"> ...

View More

woogc/options/options_save

Filter
woogc/options/options_save
Filter being used when options saved.  Should return an array containing options. Example add_filter('woogc/options/options_save', 'my_woogce_options_options_save'); function my_woogce_options_options_save($options) { //add our data $options['my_option'] =...

View More

woogc/sync/on_post_vars

Name: woogc/sync/on_post_vars Type: Filter Arguments: $PostVars Filter being used to acknowledge the plugin engine to proceed with synchronization, usually following a custom AJAX call which is not being recognized as a WooCommerce default. (e.g. wc-ajax=add_to_cart,  wc-ajax=get_refreshed_fragments) Certain plugins and themes use their own methods to handle the cart operations like add, remove.  To create a compatibility between such code and the WooCommerce Global Cart plugin, at least a POST parameter must be registered through the 'woogc/sync/on_post_vars' filter, recommended to be a unique field. The following sample code,...

View More

woogc/sync/bounce_sync

Deprecated notice: The recent tracking privacy cookie policy changes, the filter is deprecated. Instead, the synchronisation screen is used for all browsers to ensure compatibility. Name: woogc/sync/bounce_sync Type: Filter Arguments: $sites, $context The synchronization procedure ensures the cart maintains unitary across all shops in the network. The procedure triggers in the background or through a synchronization screen ( mainly for the Safari browser ). The filter instructs the code to use only the synchronization screen for all devices and browsers. add_filter('woogc/sync/bounce_sync', 'woogc_sync_bounce_sync'); ...

View More

woogc/disable_sso

This filter has been deprecated. Name: woogc/disable_sso Type: Filter Arguments: $is_disabled The filter is being used to disable Single Sign-On functionality. Single Sign-On (SSO) is a property of login on all sites in a MultiSite environment, using a single/unique login procedure. This works independently if other sites use different domains, subdomains or subdirectories structure. add_filter( 'woogc/disable_sso', 'WooGC_Disable_SSO'); function WooGC_Disable_SSO ( $status ) { ...

View More

woogc/disable_global_cart

Name: woogc/disable_global_cart Type: Filter Arguments: $is_disabled The filter is being used to disable the Global Cart functionality. The Global Cart works as a unique cart for all shops in the MultiSite Network, a product pushed to the cart will be show on all other shops too. add_filter( 'woogc/disable_global_cart', 'WooGC_Disable_GlobalCart', 10, 2 ); function WooGC_Disable_GlobalCart ( $status, $_blog_id = '' ) { ...

View More

woogc/single_checkout/split_order/blog_id

Name: woogc/single_checkout/split_order/blog_id Type: Filter Arguments: $blog_id, $status The filter can be used to disable Order Split for specific Shop, when using Single Check-out and Split Order functionality. In the following code example, disable the split for shop ID's 2: add_filter('woogc/single_checkout/split_order/blog_id', '__WooGC_single_checkout_split_order_blog_id', 10, 3); function __WooGC_single_checkout_split_order_blog_id( $status, $_blog_id, $order ) { if ( $_blog_id == 2 ) $status...

View More

woogc/get_checkout_url

Name: woogc/get_checkout_url Type: Filter Arguments: $checkout_url The filter is being used to change the $checkout_url for specific shops. As default this is being controlled through admin settings but can be adjusted to particular shops if need. The following code change the checkout url to shop default when blog_id is 4: add_filter( 'woogc/get_checkout_url', 'WooGC_get_checkout_url'); function WooGC_get_checkout_url ( $checkout_url ) { ...

View More