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

Actions

See the WordPress Codex "Action" reference (http://goo.gl/zo5vY) for a more complete list.

admin_init

Runs at the beginning of every admin page before the page is rendered. If you need to display data to the admin users, this is a great action to hook into.

admin_menu

Runs after the basic admin panel menu structure is in place. Hook into this action when adding your own custom menu items.

Example:

add_action('admin_menu', 'ContentRotator::add_menu_item');

do_meta_boxes

Runs as meta boxes are being constructed in the manager. Meta boxes are any "extra" bit of data displayed, for example, custom fields on a post edit page.

Example:

add_action( 'do_meta_boxes', 'StandardizedCustomContent::remove_default_custom_fields', 10, 3 );

init

Runs after ...

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