Firstly, add_theme_support( 'title-tag' );
is enabled in my theme.
I am working on a website, and I am using Polylang to translate it to a different language.
In my code I want to get a page title, and display it. My issue is I cannot get it by ID or page_by_path because its going to display the English version of the page on every language.
I’m trying to modify the WordPress page title.
However I’m fairly new to WordPress functions, hooks (filters & actions) and so on.
Here is my situation: I am trying to filter the content of the title column in my custom post type edit table but I can’t get it working.
Every WordPress page can be described as having two titles: