예제 #1
0
 public static function save_source_cat_fields($term_id, $tt_id, $taxonomy)
 {
     $link = isset($_POST['dln_source_link']) ? $_POST['dln_source_link'] : '';
     $type = isset($_POST['dln_source_type']) ? $_POST['dln_source_type'] : '';
     $result = DLN_Helper_Source::add_source($term_id, $link, $type);
     if (is_wp_error($result)) {
         echo $result->get_error_message();
     }
 }