function custom_woo_ce_get_product_title_attribute_formatting( $format = ‘slug’, $post_id ) { // Set the format to Attribute Title $format = ‘title’; return $format; } add_filter( ‘woo_ce_get_product_title_attribute_formatting’, ‘custom_woo_ce_get_product_title_attribute_formatting’, 10, 2 );Continue reading
function custom_woo_ce_wp_specialchars_decode( $string = ” ) { // Force all characters, including accented characters to be uppercase $string = mb_strtoupper( $string, ‘UTF-8’ ); return $string; } add_filter( ‘woo_ce_wp_specialchars_decode’, ‘custom_woo_ce_wp_specialchars_decode’ );Continue reading
function custom_woo_pd_extend_options_addons( $fields ) { // Import field title: Average Rating (shown as a custom Product import field) // Import field key: average_rating (use this key throughout the below Filters) $fields[] = array( ‘name’ => ‘average_rating’, ‘label’ => __( ‘Average…Continue reading
function custom_woo_ce_get_product_title_attribute_formatting( $format = ‘slug’, $post_id ) { // Set the format to Attribute Title $format = ‘title’; return $format; } add_filter( ‘woo_ce_get_product_title_attribute_formatting’, ‘custom_woo_ce_get_product_title_attribute_formatting’, 10, 2 );Continue reading
function custom_woo_ce_extend_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘shipping_address_full’, ‘label’ => ‘Shipping: All details’, ‘hover’ => ‘Custom Order field within functions.php’ ); return $fields; } add_filter( ‘woo_ce_order_fields’, ‘custom_woo_ce_extend_order_fields’ ); function custom_woo_ce_extend_order( $order, $order_id ) { $order->shipping_address_full = ”;…Continue reading
function custom_woo_ce_extend_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘shipping_address_full’, ‘label’ => ‘Shipping: All details’, ‘hover’ => ‘Custom Order field within functions.php’ ); return $fields; } add_filter( ‘woo_ce_order_fields’, ‘custom_woo_ce_extend_order_fields’ ); function custom_woo_ce_extend_order( $order, $order_id ) { $order->shipping_address_full = ”;…Continue reading
function custom_woo_ce_extend_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘billing_address_full’, ‘label’ => ‘Billing: All details’, ‘hover’ => ‘Custom Order field within functions.php’ ); return $fields; } add_filter( ‘woo_ce_order_fields’, ‘custom_woo_ce_extend_order_fields’ ); function custom_woo_ce_extend_order( $order, $order_id ) { $order->billing_address_full = ”;…Continue reading
function custom_woo_ce_product_variation_pricing( $product, $pricing_args ) { if( $pricing_args[‘min_price’] $pricing_args[‘max_price’] ) { $product->price = woo_ce_format_price( $pricing_args[‘max_price’] ); $product->sale_price = woo_ce_format_price( $pricing_args[‘max_sale_price’] ); } return $product; } add_filter( ‘woo_ce_product_variation_pricing’, ‘custom_woo_ce_product_variation_pricing’, 10, 2 );Continue reading
function custom_woo_ce_override_get_order_assoc_refund_date_filter() { // Allow partial Order refunds to trigger the Refund Date column to be populated return true; } add_filter( ‘woo_ce_override_get_order_assoc_refund_date_filter’, ‘custom_woo_ce_override_get_order_assoc_refund_date_filter’ );Continue reading
function custom_woo_ce_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘order_items_static’, ‘label’ => __( ‘Order Items: Static Field’, ‘woo_ce’ ), ‘hover’ => __( ‘Custom Field within functions.php’, ‘woo_ce’ ) ); return $fields; } add_filter( ‘woo_ce_order_fields’, ‘custom_woo_ce_order_fields’ ); function custom_woo_ce_extend_order_item( $order_item…Continue reading