How to override the title tag for woocommerce endpoints?

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( … Read more

Confirm Password on checkout page not working in woocommerce 3.0.1

Please try the modified code below, working on WordPress 4.7.3 with WooCommerce 3.0.3. Matt. /** * Add a confirm password field to the checkout registration form. */ function o_woocommerce_confirm_password_checkout( $checkout ) { if ( get_option( ‘woocommerce_registration_generate_password’ ) == ‘no’ ) { $fields = $checkout->get_checkout_fields(); $fields[‘account’][‘account_confirm_password’] = array( ‘type’ => ‘password’, ‘label’ => __( ‘Confirm password’, … Read more