InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Wordpress How-Tos

  • angularjs in wordpress
  • Convert wordpress page to posts and vice versa
  • Find all user created wordpress custom field keys
  • How to automate wordpress sandbox setup on Linux
  • How to capture php code or included file output in a variable
  • How to check the performance of a plugin using mysql query log
  • How to migrate wordpress from root to sub directory
  • How to upgrade wordpress manually
  • How to view wordpress current version
  • Setup xdebug for remote wordpress debugging
  • Wordpress - disable theme and plugin editing
  • Wordpress - get wpdb class method names
  • Wordpress multisite network vs normal installation
  • display method names from php WP_Query object
  • find if a wordpress page is leaf page
 
  • Home
  • > Tutorials
  • > Wordpress
  • > Wordpress How To

WordPress – get wpdb class method names

By admin on Jan 7, 2016

get wpdb class method names using get_class_methods

<?php
global $wpdb;
$class = get_class ($wpdb);
echo "=====class=$class\n";
$methods = get_class_methods($class);
echo "=====methods=" . print_r($methods, true); 


Here is the outcome from above code:
=====class=wpdb
=====methods=Array
(
    [0] => __construct
    [1] => __destruct
    [2] => __get
    [3] => __set
    [4] => __isset
    [5] => __unset
    [6] => init_charset
    [7] => set_charset
    [8] => set_sql_mode
    [9] => set_prefix
    [10] => set_blog_id
    [11] => get_blog_prefix
    [12] => tables
    [13] => select
    [14] => _weak_escape
    [15] => _real_escape
    [16] => _escape
    [17] => escape
    [18] => escape_by_ref
    [19] => prepare
    [20] => esc_like
    [21] => print_error
    [22] => show_errors
    [23] => hide_errors
    [24] => suppress_errors
    [25] => flush
    [26] => db_connect
    [27] => check_connection
    [28] => query
    [29] => insert
    [30] => replace
    [31] => _insert_replace_helper
    [32] => update
    [33] => delete
    [34] => get_var
    [35] => get_row
    [36] => get_col
    [37] => get_results
    [38] => get_col_charset
    [39] => get_col_length
    [40] => strip_invalid_text_for_column
    [41] => get_col_info
    [42] => timer_start
    [43] => timer_stop
    [44] => bail
    [45] => check_database_version
    [46] => supports_collation
    [47] => get_charset_collate
    [48] => has_cap
    [49] => get_caller
    [50] => db_version
)

Suggested posts:

  1. How and why disable android auto update
  2. Mysql – how to enable query log
  3. AngularJS format date using date filter
  4. WordPress – how to add filter to description meta tag
  5. Javascript prototype examples
  6. React component tutorial with click handler – javascript version
  7. Linux how to modify a user using usermod
  8. Linux – how to enable password login on ssh server
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Tutorials, Wordpress, Wordpress How To
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress