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
This newly implemented functionality helps with displaying WooCommerce Products across shops, in the network, under your WordPress MultiSite environment. Promote specific products, types of merchandise, category of goods, so boosting overall network sales. The new function is available as a Woocommerce Product Shortcode and is easy to implement. Any section of a site can include the shortcode to output the required products. The woocommerce shortcode is usable within the default WordPress editor ( classic ) or any advanced layout composer like Elementor, Divi, Visual Builder etc.
WooCommerce Tax area provides...
Name: woogc/get_cart_from_session/validate_hash
Type: Filter
Arguments: $force_validation, $values
When reconstructing...
Incredibly flexible, the WooCommerce...
On the Synchronization screen...
Name: woogc/network_orders/get_orders/mysql_query/GROUP_BY
Type: Filter
Arguments: $mysql_query, $blog_id
The filter...
Name: woogc/network_orders/get_orders/mysql_query/JOIN
Type: Filter
Arguments: $mysql_query, $blog_id
The filter...
Name: woogc/network_orders/get_orders/mysql_query/SELECT
Type: Filter
Arguments: $mysql_query, $blog_id
The filter...
Deprecated notice: The recent...
The WooCommerce Global Cart...