If you added custom WC endpoints on init, you can use something like this instead to check for endpoints (adjust accordingly if you’re using Yoast):
function add_custom_endpoints_to_title( $post_title ) {
if ( ! is_account_page() ) {
return $post_title;
}
global $wp;
if ( isset( $wp->query_vars['custom_endpoint_1'] ) ) {
$post_title="Custom Endpoint 1";
} elseif ( isset( $wp->query_vars['custom_endpoint_2'] ) ) {
$post_title="Custom Endpoint 2";
}
return $post_title;
}
add_filter( 'single_post_title', 'add_custom_endpoints_to_title', 99 );
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 edit the default woo-commerce Store page meta title tag “Products”
- Changing Title Tag on Shop Archive Page (current solution reverting to Title of First Product in Loop)
- WooCommerce related product – only show from primary category
- Using php to overwrite or replace title tag, while using yoast [closed]
- how to use wc_create_order with subscription product
- Add custom variable to cart content [closed]
- WooCommerce changes lost password reset link
- Default woocommerce placeholder image
- WooCommerce: Add New Report Tab
- Custom Woocommerce image size [closed]
- Yoast SEO breadcrumbs: how to create a filter that uses the url slug for breadcrumb titles
- Migrate WooCommerce Orders [closed]
- WooCommerce Subscriptions: Show monthly Price for annual Product
- How to add multiple product gallery images from front-end
- Hide income in Woocomercer [closed]
- Hide tabs on woocommerce product editor for user role
- Woocommerce add_to_cart non-register visitor not working
- Disabling the free shipping method when the cart has product/s which assigned a certain shipping class [closed]
- woocommerce_email_subject_customer_completed_order
- is_shop, is_home, is_front_page doesn’t work for woocommerce
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- How to show loading spinner after click on add to cart button [closed]
- Authenticate user into wordpress via 3rd party system, both with the same domain
- Woocommerce – Show random product thumbnail from specific product category
- How to add a greeting message upon logging into WordPress for certain user role
- Modify some CSS with functions if (function_exists
- Limit total quantity of products in WooCommerce group product
- How to get woocommerce subscription next payment date or date when subscription expires in woocommerce_subscription_renewal_payment_complete hook?
- Woo-commerce Checkout Summarized in Pop-up Card Entry Only
- Display Message if woocommerce coupon is not applicable to some items in the cart
- (Woocommerce) How to add a custom page between cart and checkout with a file upload field per product item in the cart?
- Force uppercase on some WooCommerce checkout fields input
- Display custom field without plugin in woocommerce
- How to output php between header and woocommerce container
- WooCommerce – How can I make single product gallery show two images on the slider at once?
- How do I add an extra field to comment form above the submit button?
- woocommerce email template detect email recipient
- WooCommerce – buying as well as selling
- How do I hide ‘out of stock’ products in the admin ‘product’ page?
- Hide the prefix before the price of the product [closed]
- Show Sitename on Yoast SEO Title tag [closed]
- In WooCommerce can you make a list of ‘steps’ for quantity increase? [closed]
- Set dynamic Options array in woocommerce_form_field
- WooCommerce product title formatting
- Redirect no product url’s to static url
- Adding a custom Shipping methods field to an order
- WooCommerce – Create multiple product tags via rest api endpoint
- How to modify WooCommerce button text in default and additional languages
- How to hide URL for downloadable product in WooCommerce? [closed]
- Migrating data from Woocommerce to another webapp
- WooCommerce set a min order price for a single country [closed]
- “Reset my password” links to itself (page refreshes) [closed]
- Updating failed. The response is not a valid JSON response. Gutenberg + Woocommerce Products
- Add product image to Woocommerce downloads page
- How to check if woocommerce_order_item_name is use in email?
- Purchase/order statistics plugin for viewing per payment menthod?
- Logo showing on some page but not on product categories pages
- Categories on attribute archive pages
- How to solve `Error getting remote image` in woocommerce rest api script?
- Display related product categories by subcategory
- Woocommerce Multisite global search how to mod ajax function?
- How to let users create lists of woocommerce products?
- How to force Woocommerce to deliver the product to the paypal adress which was used?
- Add username and password section in WooCommerce’s my account page
- Order again Woocommerce inside View Order
- Photo cover in WooCommerce
- How to vary WooCommerce product prices based on order dates
- How to save one API response to WooCommerce order meta data
- WooCommerce and ACF: How to Redirect Upon Add to Cart – Partially Working Example
- Woocommerce: Search by custom attribute
- How to change user role after login?
- WooCommerce free shipping twice a week
- Product overlapping header
- Custom theme woocommerce product detail page template not working
- Increase the download speed of a large number of variations in WooCommerce
- remove add to cart for free (0 $) product woocommerce
- merge tabs in woocommerce
- How to import products to Woo Commerce given that WP All Import keeps timing out
- Removing shipping for one product with coupon
- Awesome Support Custom Field for show Woocommerce orders
- How to make a custom redirect in WooCommerce?
- Firstname and lastname greyout or hidden Billing details at next checkout like username is hidden [closed]
- How to use woo commerce login to authenticate code php pages?
- Site with WooCommerce section moved to HTTPS – all pages except home and main store are 404s
- Multiple quantities with options
- how to add custom reviews button in woocommerce order complete generated mail
- Click Count on Download a File
- Not all strings are translated
- Custom Woocommerce checkout filed yields a Json error when validating [closed]
- Woocommerce make appear when items added to cart
- How to display Woocommerce catagories
- Woocommerce hidden fields with meta keys and values. how?
- Add second price option based on payment method at cart item price
- Create WordPress account on different domain when WooCommerce order completed
- Creating a woocommerce order when a user creates an account
- I want to update shipping charge $0 for all Woocommeerce Subscription auto-renewal orders