wogc/admin/manage_shop_order_column_data
Name: wogc/admin/manage_shop_order_column_data
Type: Action
Arguments: $post, $column_name
The filter can be used to render data for a custom created column on SuperAdmin Orders interface.
The following example render html for column called Products
add_action('wogc/admin/manage_shop_order_column_data', 'custom_wogc_admin_manage_shop_order_column_data', 10, 2);
function custom_wogc_admin_manage_shop_order_column_data( $post, $column_name )
{
if ( $column_name != 'products')
return;
$order = wc_get_order( $post->ID );
foreach( $order->get_items() as $key => $order_item )
{
switch_to_blog( $order_item->get_meta('blog_id') );
printf( '<b>%s</b>', esc_html( $order_item->get_name() ) );
restore_current_blog();
}
}
The code should be placed inside a php file on wp-content/mu-plugins folder.
Related Posts
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.
The WooCommerce Global Cart...