public static function has_fields($post_type_name) {
    global $wpdb;

    $sql = $wpdb->prepare("SELECT COUNT(1) FROM ".MF_TABLE_CUSTOM_FIELDS. " WHERE post_type = %s",$post_type_name);

    return $wpdb->get_var( $sql ) > 0;
  }
public static function has_fields($post_type_name) {
    global $wpdb;

    $sql = $wpdb->prepare("SELECT COUNT(1) FROM ".MF_TABLE_CUSTOM_FIELDS. " WHERE post_type = %s",$post_type_name);

    return $wpdb->get_var( $sql ) > 0;
  }
public static function has_fields ( $ post_type_name ) { global $ wpdb ; $ sql = $ wpdb -> prepare ( "SELECT COUNT(1) FROM " . MF_TABLE_CUSTOM_FIELDS . " WHERE post_type = %s" , $ post_type_name ) ; return $ wpdb -> get_var ( $ sql ) > 0 ; }
Return True if the post type has at least one custom field

return @bool
Return True if the post type has at least one custom field