'category');
if ( !isset($box['args']) || !is_array($box['args']) )
$args = array();
else
$args = $box['args'];
extract( wp_parse_args($args, $defaults), EXTR_SKIP );
$tax = get_taxonomy($taxonomy);
?>
"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks.
?>
cap->assign_terms) ) : ?>
$tax_name ));
}
add_action('admin_menu', 'aoc_custom_cat_mbox');
function aoc_custom_cat_assignation($tag){
//
// THIS WAS HACKED BECAUSE YOU CAN'T EXCLUDE CHILD CATEGORIES
//
if(current_user_can('level_10') && !$tag->parent):
?>
| Choose role to exclude from that category : |
'.$role['name']."\r\n".' ';
endif;
endforeach;
?>
|
parent) echo "| You can not exclude child categories individually. |
";
}
add_action('edit_category_form_fields', 'aoc_custom_cat_assignation');
function aoc_custom_assignation_save(){
global $tag_ID,$tag;
if($_POST['cat_access']):
update_option( 'cant_access_'.$_POST['tag_ID'], json_encode($_POST['cat_access']) );
endif;
}
add_action('edit_category', 'aoc_custom_assignation_save');