The function the_title()
is just a wrapper around the function get_the_title()
.
It’s understandably confusing that the filter the_title
actually exists inside get_the_title()
. So, whatever the function you’re using to actually display it, it doesn’t matter, you can filter its content by hooking into the_title