I use the http://www.deluxeblogtips.com/meta-box Metabox plugin and I want to add a custom action in a post type like the publish button ? when admin click on this button I want to send an email to the author and delete the current post type.
I have added the button in my post like this :
// meta box $meta_boxes = array( 'title' => __('Reviewer','sparta'), 'pages' => array( 'download'), 'fields' => array( array( 'name' => __('Reject','sparta'), 'desc' => __('reject this post.','sparta'), 'id' => $prefix . 'reject_post', 'type' => 'button', 'std' => '' )));
My question is how to execute my action from this button ? someone has an idea ?
Thank you very much