Automattic\WooCommerce\Internal\Admin\Orders
ListTable::set_created_via_args
Implements filtering of orders by created_via value.
Method of the class: ListTable{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->set_created_via_args(): void;
ListTable::set_created_via_args() ListTable::set created via args code WC 10.3.3
private function set_created_via_args(): void {
// phpcs:disable WordPress.Security.NonceVerification.Recommended
$created_via = sanitize_text_field( wp_unslash( $_GET['_created_via'] ?? '' ) );
if ( empty( $created_via ) ) {
return;
}
$this->order_query_args['created_via'] = array_map( 'trim', explode( ',', $created_via ) );
$this->has_filter = true;
}