• I am just diving in to the world of WP plugin development, and after quite a bit of searching still can’t seem to find the right action/filter for adding custom sections to the default add/edit post page.

    I would like for my plugin to add a new check box similar to the options in the “Discussion” field. If the box is checked when a post is added or edited, I’ll make my plugin function do something cool and exciting to the output of that post.

    I’ve seen the documentation regarding custom meta data… is this the only way to do it, or is there a hook I’m missing? Any help is much appreciated!

Viewing 1 replies (of 1 total)
  • Thread Starter timjamz

    (@timjamz)

    I managed to find it, so I’ll share it here in case anyone else is looking for it.

    The action hook is ‘edit_form_advanced‘ – for example:

    add_action('edit_form_advanced','my_custom_function');

    There is some standard HTML to apply to the output of the custom function in order to make it look seamless, but this approach will place additional information just below the “Discussion” div.

    Thanks for looking ??

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Sections on Add Edit Post’ is closed to new replies.