WP_HTML_Stack_Event::__construct()
Constructor function.
Method of the class: WP_HTML_Stack_Event{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_HTML_Stack_Event = new WP_HTML_Stack_Event(); $WP_HTML_Stack_Event->__construct( $token, $operation, $provenance );
- $token(WP_HTML_Token) (required)
- Token associated with stack event, always an opening token.
- $operation(string) (required)
- One of self::PUSH or self::POP.
- $provenance(string) (required)
- "virtual" or "real".
Changelog
Since 6.6.0 | Introduced. |
WP_HTML_Stack_Event::__construct() WP HTML Stack Event:: construct code WP 6.6.2
public function __construct( $token, $operation, $provenance ) { $this->token = $token; $this->operation = $operation; $this->provenance = $provenance; }