Showing posts with label How to create custom meta box in admin side wordpress. Show all posts
Showing posts with label How to create custom meta box in admin side wordpress. Show all posts

Sunday, 7 December 2014

Create custom meta box in admin wordpress


Create custom meta box in admin wordpress

// Create New meta box
add_action( 'add_meta_boxes', 'add_new_metabox' );

function add_new_metabox()
    {
        add_meta_box('custom_fields', 'Custom Fields', 'my_function');
    }

// function displays your statement
function my_function( $post )
    {
       // your statement
    }