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”
- Order by rating not works in wp_query
- Woocommerce 3.1 Add product image to order confirmation email not working
- Woocommerce: show default variation price is products list?
- Woocommerce checkout fields on the same line
- display available size on hover, in woocommerce shop page [closed]
- How to Add Product Variation with Multiple Images via WooCommerce REST API
- WooCommerce: Email Notifications
- Filter get_the_title to remove certain characters?
- How do you add custom metadata to WooCommerce orders? Specifically a second external order ID
- WooCommerce: Adding Order Item Meta Data That’s Hidden
- How to sanitize post title with commas
- Redirect user after login through woocommerce login page to page with his/her username?
- WooCommerce restore stock on order cancel
- Woocoomerce product category count including subcategories
- WordPress select field – show current value?
- Get the category ID in checkout page woocomerce
- “Cannot read property ‘replace’ of undefined” Javascript error when trying to add attribute terms from add product page [closed]
- Arranging Product Details on Shop Page
- WooCommerce product taxonomies and menu export
- Javascript / Ajax Error After Migrating To New Domain Name
- How can i stop woocommerce checkout event based on api request result?
- WordPress Twenty Seventeen header image size not responsive for mobile
- WooCommerce back-end very slow takes 10 seconds to load, slow queries
- Woocommerce custom meta fields, sort by date
- How to delete all customer user account that haven’t placed a single order?
- jquery.validation.js is not working in woocommerce checkout page form
- Backend users list – add Woocommerce meta to table
- Delete cookie when changing url (when navigating away from specific page of website)
- multi-vender wooCommerce ability to separate products based on zip code [closed]
- Maintenance mode just for WooCommerce shop pages [closed]
- I want to run a script only once on a ‘thank you’ page
- search customers in front end by billing data
- Custom email template for a specific product category
- update_post_meta not work [closed]
- How to set a default value in a meta box
- Can I have one picture for all sizes in a product with Woocommerce?
- Woocommerce password Reset
- WooCommerce Registration redirect based on page ID
- Woocommerce redirect “add to cart” button to a contact form with product information to get a inquiry
- How to remove WooCommerce Plugin some specific features [closed]
- override the default WooCommerce products search form
- How can I override wp_price woocommerce function in my theme
- WooCommerce print subcategory of product
- Woocommerce – sell a certain category by unit, another by weight? How?
- Woocommerce Product permalinks “product” word is not working
- Conditionally run function based on custom meta value?
- Woocommerce checkout required field error
- Setting a default variation for each product on the child theme functions.php file
- How to automatically change the status of product from draft to published when stock qty change from 0 > 1
- Issue with WordPress customize
- Group product by Instance ID
- WordPress woocommerce new order email not working
- WooCommerce add extra price to products by each category
- HTTP API CALLS issue on Woocommerce WordPress
- Woocommerce checkout page issue – Payment methods not loading – strange “Credit/Debit Card Secure Payment” form
- Sort products by Sale price and stock status
- Pagination in woocommerce – Limiting page-numbers
- Syncing WP Database Changes Between Environments: How To Handle Merging w/o touching database
- Show shipping class in admin order list
- Woocommerce digital download not working – database error Cannot add or update a child row: a foreign key constraint fails [closed]
- when product out of stock single page show button notify woo-commerce
- WooCommerce , Auto cancel orders status from processing after X days
- Change WooCommerce Word “Product” to Another Word
- How does a WooCommerce site integrate with the existing real world customer members?
- Modify WordPress Page Title ()
- How can I send information when a order is completed to my own POS?
- Recently viewed products – Order by viewed
- How can i add product Accessories from front-end using custom php form?
- How to save order item custom attributes save into custom table
- Manually create an order with a product ID woocommerce
- How to filter result set in custom metaboxes?
- How to change lost password email text using custom plugin wordpress?
- WooCommerce subscriptions give option of manual renewal on checkout [closed]
- How to hide / remove duplicated Woocommerce products from Shop page
- Change order status after checkout
- Is it safe to update an old site after backing it up and activating a child theme?
- How to add coupon expiry date into the followup emails?
- Disable Woocommerce main shop page, but not the product category archive pages
- access Woo commerce | WordPress methods externally
- How to store ACF from product in user_meta?
- Woocommerce set single city to sell to
- Generate page title tag from the content of H1
- Trying to link to a custom css file in a new folder
- eCommerce solution doesn’t want to display its shortcodes or any content where it’s set to [closed]
- How do I make a diagonal strikethrough on wordpress? [closed]
- Woocommerce – Remove ‘Buy Product’ Button from shop page [closed]
- Add woocommerce.css in template?
- How to change redirect code? [duplicate]
- Adding a column to woocomerce admin order page that can be sorted
- WordPress error
- Auto generating API keys using the Application Authentication Endpoint [closed]
- Is there a way to conditionally check if i’m on product variation page url like mydomain.com/myproduct?attribute_pa_color=red
- Can’t add variable products since update WooCommerce [closed]
- Add custom ID to WooCommerce product tab