WC_Breadcrumb::endpoint_trail() protected WC 1.0
Endpoints.
{} Это метод класса: WC_Breadcrumb{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->endpoint_trail();
Код WC_Breadcrumb::endpoint_trail() WC Breadcrumb::endpoint trail WC 4.9.1
protected function endpoint_trail() {
$action = isset( $_GET['action'] ) ? sanitize_text_field( wp_unslash( $_GET['action'] ) ) : '';
$endpoint = is_wc_endpoint_url() ? WC()->query->get_current_endpoint() : '';
$endpoint_title = $endpoint ? WC()->query->get_endpoint_title( $endpoint, $action ) : '';
if ( $endpoint_title ) {
$this->add_crumb( $endpoint_title );
}
}