WordPress.org

  • Showcase
  • Themes
  • Plugins
  • Mobile
  • Support
    • Documentation
    • Forums
  • Get Involved
  • About
  • Blog
  • Hosting
  • Get WordPress

Code Reference

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

wpdb::add_placeholder_escape()

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

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

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:2077

Used by 0 functions | Uses 1 function

wpdb::parse_db_host()

Method: Parse the DB_HOST setting to interpret it for mysqli_real_connect.

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

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:2030

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:754

Used by 1 function | Uses 1 function

wpdb::close()

Method: Closes the current database connection.

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

Used by 0 functions | Uses 0 functions

wpdb::get_col_length()

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

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

Used by 3 functions | Uses 2 functions

wpdb::process_field_lengths()

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

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

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:3169

Used by 3 functions | Uses 4 functions

wpdb::get_table_from_query()

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

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

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:2732

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:2748

Used by 1 function | Uses 0 functions

wpdb::check_ascii()

Method: Check if a string is ASCII.

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

Used by 3 functions | Uses 0 functions

wpdb::check_safe_collation()

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

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

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:2968

Used by 3 functions | Uses 6 functions

wpdb::strip_invalid_text_from_query()

Method: Strips any invalid characters from the query.

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

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:2630

Used by 4 functions | Uses 5 functions

pre_get_table_charset

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

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

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:2325

Used by 3 functions | Uses 4 functions

wpdb::process_field_formats()

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

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

Used by 1 function | Uses 0 functions

wpdb::process_field_charsets()

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

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

Used by 1 function | Uses 2 functions

wpdb::esc_like()

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

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

Used by 21 functions | Uses 0 functions

wpdb::supports_collation()

Method: Whether the database supports collation.

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

Used by 0 functions | Uses 2 functions

wpdb::get_charset_collate()

Method: The database character collate.

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

Used by 1 function | Uses 0 functions

wpdb::has_cap()

Method: Determine if a database supports a particular feature.

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

Used by 4 functions | Uses 1 function

wpdb::get_caller()

Method: Retrieve the name of the function that called wpdb.

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

Used by 2 functions | Uses 1 function

wpdb::db_version()

Method: Retrieves the MySQL server version.

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

Used by 6 functions | Uses 0 functions

wpdb::get_col_info()

Method: Retrieve column metadata from the last query.

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

Used by 0 functions | Uses 1 function

wpdb::timer_start()

Method: Starts the timer, for debugging purposes.

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

Used by 1 function | Uses 0 functions

wpdb::timer_stop()

Method: Stops the debugging timer.

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

Used by 1 function | Uses 0 functions
1 2 3 Next »
  • About
  • Blog
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Showcase
  • Plugins
  • Themes
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
  • @WordPress
  • WordPress

Code is Poetry.

Skip to toolbar
  • About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register