PHP Class PluginEndpoints\Router

Afficher le fichier Open project: dannyvankooten/plugin-endpoints Class Usage Examples

Protected Properties

Свойство Type Description
$endpoints array

Méthodes publiques

Méthode Description
__construct ( ) Constructor
add_filters ( ) : boolean If one of the registered endpoints is selected, add the required filters.
get_requested_endpoint ( ) : Endpoint | null
register_endpoint ( string $url, array $plugins = [] )

Method Details

__construct() public méthode

Constructor
public __construct ( )

add_filters() public méthode

If one of the registered endpoints is selected, add the required filters.
public add_filters ( ) : boolean
Résultat boolean

get_requested_endpoint() public méthode

public get_requested_endpoint ( ) : Endpoint | null
Résultat Endpoint | null

register_endpoint() public méthode

public register_endpoint ( string $url, array $plugins = [] )
$url string The leading URL for this endpoint
$plugins array Array of enabled plugin slugs for this endpoint

Property Details

$endpoints protected_oe property

protected array $endpoints
Résultat array