PHP 클래스 PluginEndpoints\Router

파일 보기 프로젝트 열기: dannyvankooten/plugin-endpoints 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$endpoints array

공개 메소드들

메소드 설명
__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 = [] )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

add_filters() 공개 메소드

If one of the registered endpoints is selected, add the required filters.
public add_filters ( ) : boolean
리턴 boolean

get_requested_endpoint() 공개 메소드

public get_requested_endpoint ( ) : Endpoint | null
리턴 Endpoint | null

register_endpoint() 공개 메소드

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

프로퍼티 상세

$endpoints 보호되어 있는 프로퍼티

protected array $endpoints
리턴 array