wpdb::get_caller()

Retrieve the name of the function that called wpdb.


Description Description

Searches up the list of functions until it reaches the one that would most logically had called this method.


Return Return

(string|array) The name of the calling function


Top ↑

Source Source

File: wp-includes/wp-db.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.