$status_name ) { $result[ substr( $status, 3 ) ] = $status_name; } return $result; } } if ( ! function_exists( 'rch_get_new_order_statuses' ) ) { function rch_get_new_order_statuses( $cut_prefix = false ) { $new_order_statuses = ( '' == get_option( 'rch_orders_new_statuses_array', array() ) ) ? array() : get_option( 'rch_orders_new_statuses_array', array() ); if ( $cut_prefix ) { $new_order_statuses_no_prefix = array(); foreach ( $new_order_statuses as $key => $value ) { $new_order_statuses_no_prefix[ substr( $key, 3 ) ] = $value; } $new_order_statuses = $new_order_statuses_no_prefix; } return $new_order_statuses; } } if ( ! function_exists( 'rch_get_table_html' ) ) { function rch_get_table_html( $data, $args = array() ) { $args = array_merge( array( 'table_class' => '', 'table_style' => '', 'row_styles' => '', 'table_heading_type' => 'horizontal', 'columns_classes' => array(), 'columns_styles' => array(), ), $args ); $row_styles = ( '' == $args['row_styles'] ? '' : ' style="' . $args['row_styles'] . '"' ); $html = ''; $html .= '