WC_Breadcrumb::endpoint_trail()
Endpoints.
Method of the class: WC_Breadcrumb{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->endpoint_trail();
WC_Breadcrumb::endpoint_trail() WC Breadcrumb::endpoint trail code 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 ); } }