“I want to modify the get_the_title function” — Do you mean you want to modify WordPress’s get_the_title()
, or simply modify what it returns? If the former, I must strongly advise against it. You shouldn’t hack core files in WordPress. If you want to modify what it returns, use the the_title
filter.