O'Reilly logo

WordPress 3 Plugin Development Essentials by Everett Griffiths, Brian Bondari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Standardizing a post's custom fields

In order to ensure that each post automatically uses the same custom fields, we need to shepherd WordPress' behavior using a plugin that makes use of WordPress' remove_meta_box() and add_meta_box() functions. The "meta box" is where you interact with your custom fields (a.k.a. your post meta). Specifically, we are going to remove the default meta box and replace it with our own. You know the drill by now. Let's create a new plugin.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required