public get_current_endpoint ( ) : string | ||
return | string |
public function get_current_endpoint()
{
global $wp;
foreach ($this->get_query_vars() as $key => $value) {
if (isset($wp->query_vars[$key])) {
return $key;
}
}
return '';
}