WC_Orders_Tracking::track_orders_view()
Send a Tracks event when the Orders page is viewed.
Method of the class: WC_Orders_Tracking{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Orders_Tracking = new WC_Orders_Tracking(); $WC_Orders_Tracking->track_orders_view();
WC_Orders_Tracking::track_orders_view() WC Orders Tracking::track orders view code WC 8.7.0
public function track_orders_view() { if ( ! OrderUtil::is_order_list_table_screen() ) { return; } // phpcs:disable WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput $properties = array( 'status' => sanitize_text_field( $_GET['post_status'] ?? ( $_GET['status'] ?? 'all' ) ), ); // phpcs:enable WC_Tracks::record_event( 'orders_view', $properties ); }