Title: function add_meta_box does not exist
Last modified: August 19, 2016

---

# function add_meta_box does not exist

 *  [rajuru](https://wordpress.org/support/users/rajuru/)
 * (@rajuru)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/function-add_meta_box-does-not-exist/)
 * hello,
    today while going to make a plugin, I found this problem. after trying
   a lot i see that add_meta_box() function shows it does not exist.
 * here is the code I run to test availability:
    if(function_exists(‘add_meta_box’)){
   echo ‘This function is available’; } else { echo ‘This function is not available’;}
 * Output:
    This function is not available
 * I get same thing on 2.7 and 2.6.2. but I can easily see that the function is 
   available in template.php file. even my editor (eclipse) can jump to the function
   when I click.
 * how can I solve it? i need to add an extra box in post created/edit area.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/function-add_meta_box-does-not-exist/#post-1020758)
 * That means `add_meta+box` hasn’t been “defined” yet.
 * Ozh explains:
    [http://planetozh.com/blog/2008/02/wordpress-snippet-add_meta_box/](http://planetozh.com/blog/2008/02/wordpress-snippet-add_meta_box/)
 * Other:
    [Function_Reference/add_meta_box](http://codex.wordpress.org/Function_Reference/add_meta_box)
   [Plugin_API](http://codex.wordpress.org/Plugin_API)
 *  Thread Starter [rajuru](https://wordpress.org/support/users/rajuru/)
 * (@rajuru)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/function-add_meta_box-does-not-exist/#post-1020827)
 * hello Michael,
    Thanks for your reply. but how to define it? i see the links 
   says this feature is introduced by WordPress 2.5+. so it is a core function. 
   isn’t it?
 * thanks
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/function-add_meta_box-does-not-exist/#post-1020830)
 * You don’t define it, but as Ozh explains:
 * > The catch here is to hook the function that add our “meta box” (here: add_some_box())
   > late enough so that the function it needs, add_meta_box(), has been defined.
   > Hooking on ‘admin_menu’ is fine.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘function add_meta_box does not exist’ is closed to new replies.

## Tags

 * [add_meta_box](https://wordpress.org/support/topic-tag/add_meta_box/)

 * 3 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/function-add_meta_box-does-not-exist/#post-1020830)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
