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

Save title as custom field on custom post type

This will automatically update a meta named post_title to the value of the post’s title, no matter where you save the post from: function wpse_275785_save_title_as_meta( $post_id, $post, $update ) { update_post_meta( $post_id, ‘post_title’, $post->post_title ); } add_action( ‘save_post’, ‘wpse_275785_save_title_as_meta’, 99, 3 );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)