woogc/get_gc_sites
Name: woogc/get_gc_sites
Type: Filter
Arguments: $sites, $context
The filter can be used to exclude specific shops when WooGlobalCart core calls the internal get_gc_sites() method.
For example, a shop can be excluded from the reports.
The following code, removes shop ID’s 2 from the reporting engine:
add_filter('woogc/get_gc_sites', '__WooGC_get_gc_sites', 10, 2);
function __WooGC_get_gc_sites( $sites, $context )
{
if ( $context != 'global_reports' )
return $sites;
//exclude site ID 2
foreach ( $sites as $key => $site_data )
{
if ( $site_data->blog_id == "2" )
unset ( $sites[$key] );
}
//reindex
$sites = array_values( $sites );
return $sites;
}
The code should be placed inside a php file on wp-content/mu-plugins folder.
Related Posts
Name: woogc/get_gc_sites
Type: Filter
Arguments: $sites, $context
The filter...
Name: woogc/single_checkout/split_order/blog_id
Type: Filter
Arguments: $blog_id, $status
The filter...
When using Single Site...
Name: woogc/network_orders/get_orders/mysql_query/WHERE
Type: Filter
Arguments: $mysql_query, $blog_id
The filter...
Name: woogc/disable_global_cart
Type: Filter
Arguments: $is_disabled
The filter is...
Changing population demographics and preferences, rapidly evolving technologies, have created a switch in the consumer product industry. With an expanding transformation in retail production tendency, driven by technology and easy access to the internet, consumers are now accessing most shops through online platforms.
Name: woogc/show_network_orders
Type: Filter
Arguments: $status
The filter can...
The WooCommerce Global Cart...
You can chose any language for your WordPress site, this is easy to set through dashboard Settings. If multiple languages are required to run on the same site, the WPML Multilingual Plugin is required. This allows different content and products for each language, or a synchronization across all.