WC_Query::add_endpoints()
Add endpoints for query vars.
Description Description
Source Source
File: includes/class-wc-query.php
public function add_endpoints() { $mask = $this->get_endpoints_mask(); foreach ( $this->get_query_vars() as $key => $var ) { if ( ! empty( $var ) ) { add_rewrite_endpoint( $var, $mask ); } } }