Single file for WordPress text
-
In many instances WordPress adds text within functions – e.g. “View all posts in …” when displaying a category link. Seems to also be many threads asking where / how to remove this text … whether ‘title’ attribute text, displaying the site name, etc. etc. Often it can’t be changed without either editing core files (a no-no), or having the knowledge / skill to add filters etc.
Wouldn’t it be good to have a single file containing all the text WordPress inserts? Better yet, have the contents of that file viewable and changeable via the Admin dashboard?
Could probably be achieved through a plugin, but I suspect that would add yet more queries whenever a page was loaded. Much better – I think – for it to be a core function, so that every time ‘hard’ text is needed, the text itself isn’t coded but an instruction to look up in that central table what to use.
A huge task, I expect, to apply retrospectively to everything that exists, but once the basics have been set up new additions can use that format and the necessary changes made whenever an existing function is updated.
- The topic ‘Single file for WordPress text’ is closed to new replies.