Tribe__Utils__Callback::__construct( string $slug = null, string $method = null )

Tribe__Utils__Callback constructor.

This is used to wrap a Tribe callable couple, a bound slug and method, to be used as a serializable callback.


Parameters

$slug

(string) (Optional) The slug or class to call.

Default value: null

$method

(string) (Optional) The method to call on the slug or class.

Default value: null


Top ↑

Source

File: src/Tribe/Utils/Callback.php

	public function __construct( $slug = null, $method = null ) {
		$this->slug   = $slug;
		$this->method = $method;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.5 Introduced.