WC_Breadcrumb::add_crumbs_author()protectedWC 1.0

Add a breadcrumb for author archives.

{} 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->add_crumbs_author();

Code of WC_Breadcrumb::add_crumbs_author() WC 6.6.1

protected function add_crumbs_author() {
	global $author;

	$userdata = get_userdata( $author );

	/* translators: %s: author name */
	$this->add_crumb( sprintf( __( 'Author: %s', 'woocommerce' ), $userdata->display_name ) );
}