Brisko

Actions
in package
Uses Instance

Manages theme actions.

This class is responsible for registering and executing theme-specific actions.

Table of Contents

do_action()  : void
Executes a specified action if it exists in the list of theme actions.
get()  : ThemeInterface
Instantiate.
get_brisko_actions()  : array<string|int, mixed>
Retrieves the list of theme-specific actions.

Methods

do_action()

Executes a specified action if it exists in the list of theme actions.

public do_action(string $action) : void
Parameters
$action : string

The name of the action to execute.

Tags
throws
InvalidArgumentException

If the action name is not valid.

Return values
void

get_brisko_actions()

Retrieves the list of theme-specific actions.

public get_brisko_actions() : array<string|int, mixed>
Return values
array<string|int, mixed>

List of action hooks.

Search results