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.


Top ↑

Source

File: wp-includes/wp-db.php

	public function get_caller() {
		return wp_debug_backtrace_summary( __CLASS__ );
	}


Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.