admin/mf_posttype.php
public function get_post_type($post_type){
    global $wpdb;

    $query = $wpdb->prepare( "SELECT * FROM ".MF_TABLE_POSTTYPES." WHERE type = %s", array( $post_type ) );

    $post_type = $wpdb->get_row( $query, ARRAY_A );
    if($post_type){
      $post_type_id = $post_type['id'];
      $post_type = unserialize($post_type['arguments']);
      $post_type['core']['id'] = $post_type_id;
      return $post_type;
    }
    return false;
  }
public function get_post_type($post_type){
    global $wpdb;

    $query = $wpdb->prepare( "SELECT * FROM ".MF_TABLE_POSTTYPES." WHERE type = %s", array( $post_type ) );

    $post_type = $wpdb->get_row( $query, ARRAY_A );
    if($post_type){
      $post_type_id = $post_type['id'];
      $post_type = unserialize($post_type['arguments']);
      $post_type['core']['id'] = $post_type_id;
      return $post_type;
    }
    return false;
  }
public function get_post_type ( $ post_type ) { global $ wpdb ; $ query = $ wpdb -> prepare ( "SELECT * FROM " . MF_TABLE_POSTTYPES . " WHERE type = %s" , array ( $ post_type ) ) ; $ post_type = $ wpdb -> get_row ( $ query , ARRAY_A ) ; if ( $ post_type ) { $ post_type_id = $ post_type [ 'id' ] ; $ post_type = unserialize ( $ post_type [ 'arguments' ] ) ; $ post_type [ 'core' ] [ 'id' ] = $ post_type_id ; return $ post_type ; } return false ; }
get a specific post type using the post_type_id or the post_type_name

@param mixed  post_type, can be a integer or a string
@return array
get a specific post type using the post_type_id or the post_type_name