Programmatically alter pagination title | WordPress.org

Hello, I already make use of the the_seo_framework_title_from_generation hook to display translated page/post titles & content and it works great (it’s a semi-complex setup where I had coded it to pick up a language query variable and serve content for a specific language from custom fields rather than creating a separate page for each language), but I now need to translate the “Page X” in the title when visiting a paginated page.

For example, I have a page that contains a custom loop, and when visiting page 2 of the French version, the <title> tag displays “Exemple de publication de type de message personnalisé – Page 2 – Test Site”.

Can you please advise how I can alter the “Page” text please? I’d assume it would sit somewhere within the existing filter that I am using for the the_seo_framework_title_from_generation hook?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer