WordPress.org

Ready to get started?Download WordPress

Forums

Migrating Plugins to 2.5: dbx_post_advanced to add_meta_box (3 posts)

  1. tflight
    Member
    Posted 6 years ago #

    I'm working on migrating one of my plugins to 2.5. Previously, I'd have a function that constructed a form that was to be presented on the write/edit pages, and add it with:

    add_filter('dbx_post_advanced', 'my_new_form');

    In 2.5, that isn't working. I've read the Admin Screens section of the Migrating Plugins page and see the new function add_meta_box and the reference to check it out in template.php. But I still don't understand what I need to get it to work in 2.5.

    Would someone be able to provide me with a simple plugin to display 'Hello World' with the new add_meta_box function?

  2. Lester Chan
    Member
    Posted 6 years ago #

    take a look at my WP-Sticky as an example http://downloads.wordpress.org/plugin/wp-sticky.zip

  3. tflight
    Member
    Posted 6 years ago #

    Fantastic, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic