Latest Tech and Tips

How to Show Hidden Custom Fields in WordPress

2

Often when a plugin wants to make the most of customized fields and work in the background, the authors make them hidden by including an underscore to the title. This permits their plugin to work easily with none interruption. But in case you are a developer attempting to debug one thing or only a curious learner, then you definitely in all probability need to know all the pieces that’s being added by the plugins. In this text, we are going to present you how one can show hidden customized fields in WordPress.

All you want to do is open your theme’s capabilities.php file and drop this code in there:

add_action( 'admin_head', 'showhiddencustomfields' );

perform showhiddencustomfields() {
	echo "<fashion kind='textual content/css'>#postcustom .hidden { show: table-row; }</fashion>
";
}

However by pasting the code, you’re restricted to the particular theme. If you needed to swap the theme, then you definitely would have to add this code over again. So you may merely create a PHP file, and save the code in there and add it as a plugin.

Or you may merely use Show Hidden Custom Fields

All credit for this superb trick goes to Viper007Bond.

This put up is offered by the colour flyer printing consultants, Next Day Flyers.