function custom_woo_ce_extend_product_fields( $fields ) { $fields[] = array( ‘name’ => ‘static_field’, ‘label’ => __( ‘Static Field’, ‘woo_ce’ ), ‘hover’ => __( ‘Static Field within functions.php’, ‘woo_ce’ ) ); return $fields; } add_filter( ‘woo_ce_product_fields’, ‘custom_woo_ce_extend_product_fields’ ); function custom_woo_ce_extend_product_item( $product, $product_id )…Continue reading
function custom_woo_ce_extend_order_items_unique_columns( $fields = array(), $i = 0, $original_columns = array() ) { if( isset( $original_columns[sprintf( ‘order_item_%d_static’, $i )] ) ) $fields[] = sprintf( __( ‘Order Item #%d: Static Field’, ‘woo_ce’ ), $i ); return $fields; } add_filter( ‘woo_ce_unique_order_item_columns’, ‘custom_woo_ce_extend_order_items_unique_columns’,…Continue reading
function custom_woo_ce_extend_order_items_combined( $order ) { $order->order_items_static = ‘Static value’; return $order; } add_filter( ‘woo_ce_order_items_combined’, ‘custom_woo_ce_extend_order_items_combined’ );Continue reading
function custom_woo_ce_extend_order_items_individual( $order, $order_item ) { $order->order_items_static = ‘Static value’; return $order; } add_filter( ‘woo_ce_order_items_individual’, ‘custom_woo_ce_extend_order_items_individual’, 10, 2 );Continue reading
function custom_woo_ce_scheduled_export_banner_save_prompt() { // No more prompts on the Edit Scheduled Export screen return false; } add_filter( ‘woo_ce_scheduled_export_banner_save_prompt’, ‘custom_woo_ce_scheduled_export_banner_save_prompt’ );Continue reading
function custom_woo_ce_field_editor_save_prompt() { // No more prompts on the Field Editor screen return false; } add_filter( ‘woo_ce_field_editor_save_prompt’, ‘custom_woo_ce_field_editor_save_prompt’ );Continue reading
function custom_woo_ce_product_variable_price( $output = ” ) { // Return the lowest price of the Variations return ‘%s’; } add_filter( ‘woo_ce_product_variable_price’, ‘custom_woo_ce_product_variable_price’ );Continue reading
function custom_woo_ce_enable_product_image_embed() { return true; } add_filter( ‘woo_ce_enable_product_image_embed’, ‘custom_woo_ce_enable_product_image_embed’ );Continue reading
// Override the default ZipArchive Class that is loaded in PHPExcel and default to the PCLZip Class function custom_woo_ce_export_phpexcel_ziparchive_legacy() { return true; } add_filter( ‘woo_ce_export_phpexcel_ziparchive_legacy’, ‘custom_woo_ce_export_phpexcel_ziparchive_legacy’ );Continue reading
function custom_woo_ce_order_fields( $fields ) { $fields[] = array( ‘name’ => ‘static_field_1’, ‘label’ => __( ‘Static Field #1’, ‘woo_ce’ ), ‘hover’ => __( ‘Static Field within functions.php’, ‘woo_ce’ ) ); $fields[] = array( ‘name’ => ‘static_field_2’, ‘label’ => __( ‘Static Field…Continue reading