WordPress at Your Fingertips
function is not described

WC_Breadcrumb::endpoint_trail() protected WC 1.0

Endpoints.

{} It's a method of the class: WC_Breadcrumb{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->endpoint_trail();

Code of WC_Breadcrumb::endpoint_trail() WC 5.8.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 );
	}
}