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NC,^<80)"^+e1!e3Y1 pܣvcXIo9N>\j`0qQI櫖\ڻ}-ȹ&ݰߟ-[!,W$22 'Ktmw 8tT5=Y֨Jic!*BXu;`KPZGrv"–PR8_ihCRtʝ_]a&Xj!%MO;ux(YRZ~b788[3˖VKQs`^K:B؏}N-؞{dRJk`PKCvL%a1b ~)2 `;qa( 7Z詡w9m4} ۅ96ܠmW݋9qh&nľYx1Y\@#Hl@_߽?KqlmK7>Yn'tw@ԧ۽G ; u;G߯GsN,A ҝ$"ShM29/ baz 4ӆk]17v܎'S8ҹ#lx|V h)NˤR&z-SI} K+u""v@]}Yn7|P R+^Jb& ğ o?;MtD)<] IފqA-[4EXJ/`,*+,jnWcEeb'65JL94 ǡ+1ehe@6k'sMxAwljR'hX ٲ&B $v~iW3=uOA^1wx$o%CDuKW3'qdvۮuO` ƙv $PN%hsߍ6G,IYEɷ|}s[fn0( \1ԓi@v8#WO(s=;k!+Q|'Fe%oQzȼI'FN"QV-mV:§f@yuؒcWWx>҇D}c::class )->get_order_type( $order_id ); } /** * Helper method to generate admin url for an order. * * @param int $order_id Order ID. * * @return string Admin url for an order. */ public static function get_order_admin_edit_url( int $order_id ) : string { return wc_get_container()->get( PageController::class )->get_edit_url( $order_id ); } /** * Helper method to generate admin URL for new order. * * @return string Link for new order. */ public static function get_order_admin_new_url() : string { return wc_get_container()->get( PageController::class )->get_new_page_url(); } /** * Check if the current admin screen is an order list table. * * @param string $order_type Optional. The order type to check for. Default shop_order. * * @return bool */ public static function is_order_list_table_screen( $order_type = 'shop_order' ) : bool { return wc_get_container()->get( PageController::class )->is_order_screen( $order_type, 'list' ); } /** * Check if the current admin screen is for editing an order. * * @param string $order_type Optional. The order type to check for. Default shop_order. * * @return bool */ public static function is_order_edit_screen( $order_type = 'shop_order' ) : bool { return wc_get_container()->get( PageController::class )->is_order_screen( $order_type, 'edit' ); } /** * Check if the current admin screen is adding a new order. * * @param string $order_type Optional. The order type to check for. Default shop_order. * * @return bool */ public static function is_new_order_screen( $order_type = 'shop_order' ) : bool { return wc_get_container()->get( PageController::class )->is_order_screen( $order_type, 'new' ); } /** * Get the name of the database table that's currently in use for orders. * * @return string */ public static function get_table_for_orders() { return wc_get_container()->get( COTMigrationUtil::class )->get_table_for_orders(); } /** * Get the name of the database table that's currently in use for orders. * * @return string */ public static function get_table_for_order_meta() { return wc_get_container()->get( COTMigrationUtil::class )->get_table_for_order_meta(); } /** * Counts number of orders of a given type. * * @since 8.7.0 * * @param string $order_type Order type. * @return array Array of order counts indexed by order type. */ public static function get_count_for_type( $order_type ) { global $wpdb; $cache_key = \WC_Cache_Helper::get_cache_prefix( 'orders' ) . 'order-count-' . $order_type; $count_per_status = wp_cache_get( $cache_key, 'counts' ); if ( false === $count_per_status ) { if ( self::custom_orders_table_usage_is_enabled() ) { // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared $results = $wpdb->get_results( $wpdb->prepare( 'SELECT `status`, COUNT(*) AS `count` FROM ' . self::get_table_for_orders() . ' WHERE `type` = %s GROUP BY `status`', $order_type ), ARRAY_A ); // phpcs:enable $count_per_status = array_map( 'absint', array_column( $results, 'count', 'status' ) ); } else { $count_per_status = (array) wp_count_posts( $order_type ); } // Make sure all order statuses are included just in case. $count_per_status = array_merge( array_fill_keys( array_keys( wc_get_order_statuses() ), 0 ), $count_per_status ); wp_cache_set( $cache_key, $count_per_status, 'counts' ); } return $count_per_status; } } Bobbel Frosch - BB Bobbel

Bobbel Frosch

7,00 56,00 

Lieferzeit: 10 - 20 Tage

Artikelnummer: BB44132 Kategorie: