WordPress at Your Fingertips
function is not described

SimplePie_Parse_Date::add_callback() public WP 1.0

Add a callback method to parse a date

{} It's a method of the class: SimplePie_Parse_Date{}

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Parse_Date = new SimplePie_Parse_Date();
$SimplePie_Parse_Date->add_callback( $callback );
$callback(callback) (required)
-

Code of SimplePie_Parse_Date::add_callback() WP 5.8.2

public function add_callback($callback)
{
	if (is_callable($callback))
	{
		$this->user[] = $callback;
	}
	else
	{
		trigger_error('User-supplied function must be a valid callback', E_USER_WARNING);
	}
}