Family Best Time >> Electronics

How to show hidden custom fields in WordPress

Often when a plugin needs to use custom fields and work in the background, authors hide them by adding an underscore to the name. This allows your plugin to run smoothly without any interruptions. But if you're a developer trying to debug something or just a curious student, then you probably want to know everything that plugins are adding. In this article, we will show you how you can show hidden custom fields in WordPress.

All you need to do is open your theme's functions.php file and place this code there:

add_action ('admin_head', 'showhiddencustomfields'); función showhiddencustomfields () echo "#postcustom .hidden display: table-row;"; 

However, by pasting the code, you are limited to the specific theme. If you want to change the theme, you'll need to re-add this code. So you can simply create a PHP file and save the code there and load it as a plugin.

Or you can just use Show Hidden Custom Fields

All credits for this awesome hack go to Viper007Bond.

This post is brought to you by the experts in color brochure printing, overnight brochures.