Description


If you want to add new metabox under Dowloads –> Add New, you can use this hook.

Parameters


One argument is passed to this hooks.

Usage


To add new metaboxes to wpdmpro post type.
add_filter('wpdm_meta_box','my_meta_box',10,1);

Examples


<?php
add_filter('wpdm_meta_box','my_meta_box',10,1);
function my_meta_box($metaboxs){
   $meta_box['title'] = 'My Meta Box Title';
   $meta_box['callback'] = 'my_call_back_function';
   $meta_box['position'] = 'metabox positon';
   $meta_box['priority'] = 'metabox priority';
   $metaboxs['my_meta_box_id'] = $meta_box;
   return $metaboxs;
}
?>

Related


Last Updated: Jun 29, 2014


Leave a Reply