Seems like the solution I was looking for was !in_the_loop()
Full:
add_filter( 'the_title', 'custom_account_endpoint_titles', 10, 2 );
function custom_account_endpoint_titles( $title ) {
if (is_shop() && !in_the_loop() && ! is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )) {
return 'Shop - Parure.co';
}
}
Note: the !is_admin and !DOING_AJAX functions are to prevent this from affecting product titles in the admin panel
Related Posts:
- Change Meta Title seperator and remove on homepage
- Editing Header Titles of each details in woocommerce Order Email [closed]
- Woocommerce: How to remove page title from storefront theme homepage
- Change the Title Tag of Search Products Page
- How to override the title tag for woocommerce endpoints?
- How to edit the default woo-commerce Store page meta title tag “Products”
- wc_get_template_part( ‘content’, ‘product’ ) | Where is this file located?
- how to get woocommerce product attribute slug
- How to build a plugin that supports authenticated POST requests to the REST API from external servers?
- How do I add a text input field for customers to leave a note on a single WooCommerce product page?
- Where can I find a single item template
- Get Woocommerce Subscription Product
- WooCommerce pages accessible to logged in members only
- paypal not showing on woocommerce payments
- Target WooCommerce Product Gallery Image (rather than Featured Image) for og:image
- Save and display selected product option and cost as cart item data in WooCommerce
- How to update the WooCommerce cart Icon to show new products added with JavaScript
- Remove the link from the thumbnail and product title on woocommerce
- How to configure Woocommerce Payment Methods programmatically?
- woocommerce_package_rates not fired everytime
- how to change woocommerce shop archive description? [closed]
- How to display the result of a custom metabox in the frontend [closed]
- Quantity on the product card and subtotal disappear [closed]
- Admin access for custom user capabilities
- Display product category taxonomy terms in WooCommerce shop loop
- Products Shortcode is Displaying Single Product Page Price for all Products [closed]
- Subscription on Checkout
- Woocommerce – display product in page but in list format with excerpt
- how to show store name when I add a product on cart in woocommerce(woocommerce multi store)?
- When Free shipping is available hide other shipping methods except Local pickup in WooCommerce [closed]
- Create archive page for woocommerce attribute
- Refund from wooCommerce with stripe [closed]
- Can’t filter out variable products in sale from wp_get_products loop (or shortcode) [closed]
- how do i remove a woo-commerce widget?
- How can I convert woocommerce checkout fields in capital letters
- main menu hide woo commerce single products tittle
- What Hook/Action is performed when a field in checkout form is changed in WooCommerce
- Order by date on category dynamically – Woocommerce
- Woocomnerce Limit Purchase value before proceed checkout
- Add to cart – button should be disabled
- WooCommerce – change child category URL structure
- How To Customize The Product Page Template for a WooCommerce Custom Product Type Plugin [closed]
- Hide Add to Cart button on woocommerce Product description page of a particular product
- What is better way to sync wp multisite woocommerce products
- Remove required from a custom field created from WooCommerce Checkout Field Editor plugin
- How to change status of woocommerce orders when post status is changed
- manage_shop_order_posts_custom_column() hook is Not working In Functions.php file in my WordPress active theme
- How to send woocommerce emails in multiple languages
- Custom WooCommerce rewrite rules with comma delimiter
- Set city as required if country is Singapore
- WooCommerce – Child Category wont show, but Parent does
- WooCommerce Simple Auctions add username to auction finished email
- Enable Gutenberg for Woocommerce
- How to hide a random text with a div tag using a class on product pages with a specific tag
- Missing variable options on add to cart form
- How to remove Calendar on Woocommerce Category Pages
- How to remove the Sub category product URL Woocommerce
- WC_Structured_Data Class Causing Needless Translation
- Placing Lock Icon on WooCommmerce “Place Order” Checkout Button (WordPress ‘ignoring’ Changes…)
- How to Sync Woocommerce and CRM via External API
- How do i display zip code options during checkout [closed]
- Woocommerce – wc_cart_totals_shipping_method_label() breaking out option tag
- Woocommerce Add prices
- How to limit Woocommerce search to titles only?
- How to invoice Woocommerce customer the remainder balance amount for additional items to an already paid order
- WooCommerce – Show different terms and conditions for different user roles
- How to set subcategory in Woocommerce?
- Woocommerce – How to Show product tags in shop page
- Bulk edit orders to ‘wc-processing’ status
- woocommerce price filter not working when change currency
- With what hook do I remove WooCommerce existing Product Data Tab form fields?
- After update Woocommerce shop page not showing products
- Remove link for Woocommerce product tags
- WooCommerce Class dosen’t exist
- Add youtube embed to woocommerce variations
- WooCommerce – Large number of product variations (200+)
- Add custom link/pop up under variations dropdown
- Problem in woocommerce.The option “Add product image” is gone.Please help me!
- How to make product free for some customers and paid for others?
- Woocommerce: Some action hooks not firing inside class [closed]
- Display x number of terms and exclude hidden
- How to move WooCommerce Product Data Box below Title Box in Edit
- Custom access given to Admin dashboard
- WooCommerce, after moving reviews tab to under product description. If pagination link is clicked description is hidden
- How to show Woocommerce add to cart form for variable product on custom location [closed]
- Adding more information to a Content Product Category
- Woocommerce | Product page seems differently on my 2 websites
- How to get products outside main loop in Woocommerce?
- WooCommerce shipping tax
- Login page so wide [closed]
- Woocommerce API REST search by multiple keywords
- Problems using WooCommerce & Qstomizer
- Remove Ok Button when popup message
- How to handle WordPress account for terminated employee
- WooCommerce Pruduct and Category Grid costumization [closed]
- how to get the current page endpoint
- Calculate order end date based on date and number of weeks ACF fields
- Football kit management system in WordPress
- To many WooCommmerce related transients in WordPress options table
- Display List of Products With Missing Attribute?