1
所以我知道如何保存的事情,当一个分类编辑这样的:如何将自定义元框添加到分类法中?
if(!function_exists('mytaxonomysave')):
function mytaxonomysave($term_id, $tt_id, $taxonomy) {
if($taxonomy == 'series'){
if(isset($_POST['type'])){
update_term_meta($term_id, 'type', $_POST['type']);
}
}
}
endif;
add_action('edit_term', 'mytaxonomysave', 10, 3);
但我不知道如何添加的metabox到正确的地方,我该怎么办?什么正确的hook¿