Write your own WordPress plugin to rename Posts

Tutorial Difficulty Level

Quite often when building a WordPress website you might want to use the Post object to represent something else, for example, a business, a piece of art, a machine etc. So when the editors login, you want them to “Add New Machine”, “Edit Machine” and so on, yes?

This very website uses “Tutorials” rather than “Posts” in the backend, making it much easier for regular editors to navigate. This can be done in several ways, including renaming the menu items with a plugin or including functions in functions.php to override the strings (although you’ll need a combination of both to achieve the full effect).

But how about creating our own small plugin to handle this functionality completely? Use the following as a template for your own plugin and rename the file to be the same name as the class eg. chg_Posts_to_Machine.php. Be sure you have read this post first.

Upload this file to the wp-content/plugins directory and be sure to activate it via the WP Dashboard.