wpdb::get_caller() WordPress Method
The wpdb::get_caller() method is used to get the name of the function that called the wpdb::prepare() method. This can be useful for debugging purposes.
wpdb::get_caller() #
Retrieves a comma-separated list of the names of the functions that called wpdb.
Return
(string) Comma-separated list of the calling functions.
Source
File: wp-includes/wp-db.php
public function get_caller() { return wp_debug_backtrace_summary( __CLASS__ ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |