WordPress.org

Support

Support » Plugins and Hacks » Only Administration can post from series

Only Administration can post from series

Viewing 1 replies (of 1 total)
  • At first open ‘orgSeries-admin.php’ file. Then replace ‘orgseries_add_meta_box’ function with the following code:

    function orgseries_add_meta_box() {
        global $orgseries;
        $posttypes = apply_filters('orgseries_posttype_support', array('post') );
        foreach ( $posttypes as $posttype ) {
            if(current_user_can( 'delete_plugins' )) {
                add_meta_box('seriesdiv', __('Series', 'organize-series'), 'series_edit_meta_box', $posttype, 'side');
                remove_meta_box('tagsdiv-series', $posttype, 'side'); //removes series meta box added by WordPress Taxonomy api.
            } else {
                remove_meta_box('seriesdiv', $posttype, 'side');
                remove_meta_box('tagsdiv-series', $posttype, 'side');
            }
        }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Only Administration can post from series’ is closed to new replies.