• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org
  • Plugins
  • Themes
  • Patterns
  • Learn
  • Support
    • Documentation
    • Forums
  • News
  • About
  • Get Involved
    • Five for the Future
  • Showcase
  • Mobile
  • Hosting
  • Openverse
  • Get WordPress
Get WordPress

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Reference / wp-includes/wp-db.php

wpdb::db_server_info()

Method: Retrieves full database server information.

Source: wp-includes/wp-db.php:3810

Used by 1 function | Uses 0 functions

wpdb::log_query()

Method: Logs query data.

Source: wp-includes/wp-db.php:2190

Used by 1 function | Uses 2 functions

log_query_custom_data

Filter Hook: Filters the custom data to log alongside a query.

Source: wp-includes/wp-db.php:2205

Used by 1 function | Uses 0 functions

wpdb::add_placeholder_escape()

Method: Adds a placeholder escape string, to escape anything that resembles a printf() placeholder.

Source: wp-includes/wp-db.php:2254

Used by 2 functions | Uses 1 function

wpdb::remove_placeholder_escape()

Method: Removes the placeholder escape strings from a query.

Source: wp-includes/wp-db.php:2270

Used by 0 functions | Uses 1 function

wpdb::parse_db_host()

Method: Parses the DB_HOST setting to interpret it for mysqli_real_connect().

Source: wp-includes/wp-db.php:1858

Used by 1 function | Uses 0 functions

wpdb::placeholder_escape()

Method: Generates and returns a placeholder escape string for use in queries returned by ::prepare().

Source: wp-includes/wp-db.php:2223

Used by 2 functions | Uses 2 functions

wpdb::determine_charset()

Method: Determines the best charset and collation to use given a charset and collation.

Source: wp-includes/wp-db.php:832

Used by 1 function | Uses 1 function

wpdb::close()

Method: Closes the current database connection.

Source: wp-includes/wp-db.php:3656

Used by 0 functions | Uses 0 functions

wpdb::get_col_length()

Method: Retrieves the maximum string length allowed in a given column.

Source: wp-includes/wp-db.php:3050

Used by 3 functions | Uses 2 functions

wpdb::process_field_lengths()

Method: For string fields, records the maximum string length that field can safely save.

Source: wp-includes/wp-db.php:2671

Used by 1 function | Uses 2 functions

wpdb::strip_invalid_text_for_column()

Method: Strips any invalid characters from the string for a given table and column.

Source: wp-includes/wp-db.php:3421

Used by 3 functions | Uses 4 functions

wpdb::get_table_from_query()

Method: Finds the first table name referenced in a query.

Source: wp-includes/wp-db.php:3459

Used by 2 functions | Uses 0 functions

wpdb::get_col_charset()

Method: Retrieves the character set for the given column.

Source: wp-includes/wp-db.php:2984

Used by 3 functions | Uses 4 functions

pre_get_col_charset

Filter Hook: Filters the column charset value before the DB is checked.

Source: wp-includes/wp-db.php:3000

Used by 1 function | Uses 0 functions

wpdb::check_ascii()

Method: Checks if a string is ASCII.

Source: wp-includes/wp-db.php:3139

Used by 3 functions | Uses 0 functions

wpdb::check_safe_collation()

Method: Checks if the query is accessing a collation considered safe on the current version of MySQL.

Source: wp-includes/wp-db.php:3159

Used by 4 functions | Uses 3 functions

wpdb::strip_invalid_text()

Method: Strips any invalid characters based on value/charset pairs.

Source: wp-includes/wp-db.php:3220

Used by 3 functions | Uses 7 functions

wpdb::strip_invalid_text_from_query()

Method: Strips any invalid characters from the query.

Source: wp-includes/wp-db.php:3374

Used by 1 function | Uses 4 functions

wpdb::get_table_charset()

Method: Retrieves the character set for the given table.

Source: wp-includes/wp-db.php:2880

Used by 4 functions | Uses 6 functions

pre_get_table_charset

Filter Hook: Filters the table charset value before the DB is checked.

Source: wp-includes/wp-db.php:2895

Used by 1 function | Uses 0 functions

wpdb::process_fields()

Method: Processes arrays of field/value pairs and field formats.

Source: wp-includes/wp-db.php:2546

Used by 3 functions | Uses 6 functions

wpdb::process_field_formats()

Method: Prepares arrays of value/format pairs as passed to wpdb CRUD methods.

Source: wp-includes/wp-db.php:2605

Used by 1 function | Uses 0 functions

wpdb::process_field_charsets()

Method: Adds field charsets to field/value/format arrays generated by wpdb::process_field_formats().

Source: wp-includes/wp-db.php:2640

Used by 1 function | Uses 2 functions

wpdb::esc_like()

Method: First half of escaping for `LIKE` special characters `%` and `_` before preparing for SQL.

Source: wp-includes/wp-db.php:1538

Used by 21 functions | Uses 0 functions

wpdb::get_charset_collate()

Method: Retrieves the database character collate.

Source: wp-includes/wp-db.php:3718

Used by 1 function | Uses 0 functions

wpdb::has_cap()

Method: Determines if a database supports a particular feature.

Source: wp-includes/wp-db.php:3744

Used by 4 functions | Uses 1 function

wpdb::get_caller()

Method: Retrieves a comma-separated list of the names of the functions that called wpdb.

Source: wp-includes/wp-db.php:3788

Used by 2 functions | Uses 1 function

wpdb::db_version()

Method: Retrieves the database server version.

Source: wp-includes/wp-db.php:3799

Used by 6 functions | Uses 1 function

wpdb::get_col_info()

Method: Retrieves column metadata from the last query.

Source: wp-includes/wp-db.php:3561

Used by 0 functions | Uses 1 function
1 2 3 Next »
  • About
  • News
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
Code is Poetry