WC_Breadcrumb::endpoint_trail()protectedWC 1.0

Endpoints.

Метод класса: WC_Breadcrumb{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->endpoint_trail();

Код WC_Breadcrumb::endpoint_trail() WC 8.7.0

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 );
	}
}