I am trying to append “DEV SRV:” to the page title (i.e. title tag) if the IP Address matches that of the dev server. I have tried this both in the functions.php file of my child theme and as a standalone plugin
I’m trying to modify the WordPress page title.
However I’m fairly new to WordPress functions, hooks (filters & actions) and so on.
I need to add a custom text in wordpress Post title dynamically which I’m trying to add via this code in function.php
Every WordPress page can be described as having two titles: