I am supprised that this question still accepts answers once woocommerce is a plugin and out of the scope of this chat.
Anyhow for what I have understood you want to show the product title on the woocommerce breadcrumb, Woocommerce breadcrumb already does that by default, there is no need of any changes, just remove your code.
woocommerce_breadcrumb();
If you really want to add to you function the product tittle, you can call it like this
global $product;
echo $product->name;
However this will only works on the product page, on the shop page and like so will not show the product name, or will only show the first product name.
Related Posts:
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- How to get rid of the hover zoom in WooCommerce single products
- What’s the difference between WC() and $woocommerce
- Hook and send Woocommerce data after click Place Order button
- Show only geolocated user country into Woocommerce checkout country fields
- Extend Woocommerce rest api routes fails
- Remove action on product archive page [closed]
- The correct way to override WooCommerce product gallery from a plugin [closed]
- display available size on hover, in woocommerce shop page [closed]
- Customize WooCommerce orders displayed shipping
- How can I show an empty WooCommerce cart? [closed]
- Is there a Woocommerce hook that fires when applying a coupon but before checking if it’s valid?
- What is the action hook for an order that fails on frontend checkout in WooCommerce?
- How to unhook a function in Woocommerce Template?
- is_shop, is_home, is_front_page doesn’t work for woocommerce
- Using a filter with multiple parameters and $this
- Remove Order List Row Link in WooCommerce Admin?
- Get rid of product images mobile swipe functionality from WooCommerce single product [closed]
- Which hook should I use to capture $_POST(‘password’) via profile update and password reset
- Breadcrumbs on Product Page Always Show Wrong Product [closed]
- Edit WooCommerce product content based on category
- woocommerce_package_rates not fired everytime
- Woocommerce Porto Theme Hide Selected Categroy for Breadcrumbs
- differentiate hooks and filters on the same page [closed]
- ‘profile_update’ hook alternative for WooCommerce user meta data
- How to update custom field in WooCommerce
- Add Stripe Connect data to wc_stripe_payment_request
- How can I change the functionality of breadcrumbs?
- Redirect customer to login page (with other signup plugin) if user not logged in when proceeding to checkout
- How to subscribe free subscription on user registration in woocommerce subscription plugin?
- How to list all WC products by their attributes values?
- Showing the WordPress standard text area on a Woocommerce Single Product Page?
- Woocommerce Moving Review Below add to cart breaks button
- Error after woocommerce update from 2.6 to 3.5 [closed]
- WooCommerce order complete email logic
- How to override Woocommerce functionality in Reports section?
- how can use woocommerce add to cart popup?
- woocommerce breadcrumbs in theme [closed]
- How to Update the Order-Items While Editing an Order on the WooCommerce Admin Order Screen [closed]
- WooCommerce Hook: Content get’s displayed twice and not AFTER the order total
- How to re-arrange this hooked content?
- How to exclude a taxonomy from shop & search page wooCommerce?
- Redirect no product url’s to static url
- What Hook/Action is performed when a field in checkout form is changed in WooCommerce
- How to change a WooCommerce Subscription Deposit and Monthly Payment? [closed]
- How can I add a so i can show sale price under normal price
- password_reset doesnt work
- WooCommerce checkout page price break down table hook
- How to output woocommerce products to a page, style and modify the html structure
- Filter default_content only for products
- Woocommerce – Adding row to cart table
- Conditional action hook
- How can I override wp_price woocommerce function in my theme
- Conditionally run function based on custom meta value?
- manage_shop_order_posts_custom_column() hook is Not working In Functions.php file in my WordPress active theme
- Display custom product option in admin order details
- How to alter taxes amounts when updating an order
- How to check if woocommerce_order_item_name is use in email?
- Hooks For Design variation in woo commerce single product page
- Use ID as slug for product category by default in WooCommerce?
- What is the problem with these lines of code?
- Woocommerce : Add name filed of checkout page to buyers wordpress display name
- Missing variable options on add to cart form
- call_user_func_array() expects parameter 1 to be a valid callback, class ‘WC_Rapyd’ does not have a method ‘install’
- Help to locate a woocommerce hook method
- check shipping amount in woocommerce_after_checkout_validation?
- How to display two different custom taxonomy terms on a WooCommerce single product page
- Woocommerce Disabling Auto Restocking for Cancelled Orders
- Parameters in woocommerce_before_add_to_cart_button hook
- Unable to call woocommerce hook in my custom php file
- How can i add product Accessories from front-end using custom php form?
- woocommerce_add_to_cart custom function called several times
- How to track product price changes?
- Remove username and account password field from checkout page
- Display product thumbnail in Woocommerce email notifications
- Make Woocommerce breadcrumbs show up using functions.php file
- Add suffix to price html does not work
- With what hook do I remove WooCommerce existing Product Data Tab form fields?
- How to hook in to WooCommerce Related Products
- Woocommerce: Unique price for individual basket items
- Hide add to cart when product variation has no price or is unavailable
- Hook woocommerce price in backend order edition
- WooCommerce Admin Only Email Hook
- Create woocommerce order on new user registration
- woocommerce breadcrumb only in cart and checkout pages
- WooCommerce Hook after Billing form completed, but before payment Gateway
- Can a woocommerce hook alter the UI of a website?
- dakon show vender address on checkout page
- Hide a shipping method if cart total is higher than an amount
- Add second price option based on payment method at cart item price
- Use a woocommerce hook to create a table and populate it with a query
- Display WooCommerce size product attribute on shop page
- How to Change WooCommerce Variable product pricing by SKU or visible children id
- How to display empty stars on products with woocommerce?
- Shipping methods in dropdown instead of radio buttons [closed]
- remove sale price after finished countdown in woocommerce
- how i can limit woo Category number like as ‘posts_per_page’ => -1, but it cannot work please help me
- Forgot password flow does not work, getting email with a link but after clicking link it’s not working
- Html code is not showing in woocommerce shop page on adding in header.php?
- Importing Attributes in to Woocommerce