original_string: 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;
    }
code: 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;
    }
code_tokens: 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 ; }
docstring: Return True if the post type has at least one custom field
  
  return @bool
docstring_tokens: Return True if the post type has at least one custom field