admin/mf_custom_taxonomy.php
public function get_custom_taxonomy($custom_taxonomy_id){
    global $wpdb;

    $query = sprintf('SELECT * FROM %s WHERE id = %s',MF_TABLE_CUSTOM_TAXONOMY,$custom_taxonomy_id);
    $custom_taxonomy = $wpdb->get_row( $query, ARRAY_A );
    if($custom_taxonomy){
      $custom_taxonomy = unserialize($custom_taxonomy['arguments']);
      $custom_taxonomy['core']['id'] = $custom_taxonomy_id;
      return $custom_taxonomy;
    }
    return false;
  }
public function get_custom_taxonomy($custom_taxonomy_id){
    global $wpdb;

    $query = sprintf('SELECT * FROM %s WHERE id = %s',MF_TABLE_CUSTOM_TAXONOMY,$custom_taxonomy_id);
    $custom_taxonomy = $wpdb->get_row( $query, ARRAY_A );
    if($custom_taxonomy){
      $custom_taxonomy = unserialize($custom_taxonomy['arguments']);
      $custom_taxonomy['core']['id'] = $custom_taxonomy_id;
      return $custom_taxonomy;
    }
    return false;
  }
public function get_custom_taxonomy ( $ custom_taxonomy_id ) { global $ wpdb ; $ query = sprintf ( 'SELECT * FROM %s WHERE id = %s' , MF_TABLE_CUSTOM_TAXONOMY , $ custom_taxonomy_id ) ; $ custom_taxonomy = $ wpdb -> get_row ( $ query , ARRAY_A ) ; if ( $ custom_taxonomy ) { $ custom_taxonomy = unserialize ( $ custom_taxonomy [ 'arguments' ] ) ; $ custom_taxonomy [ 'core' ] [ 'id' ] = $ custom_taxonomy_id ; return $ custom_taxonomy ; } return false ; }
get a specific post type
get a specific post type