PHP 클래스 WPCOM_Legacy_Redirector, vip-mu-plugins-public

파일 보기 프로젝트 열기: Automattic/vip-mu-plugins-public 1 사용 예제들

공개 메소드들

메소드 설명
get_redirect_post_id ( $url )
get_redirect_uri ( $url )
init ( )
insert_legacy_redirect ( string $from_url, integer | string $redirect_to ) : boolean | WP_Error
maybe_do_redirect ( )
start ( )

비공개 메소드들

메소드 설명
get_url_hash ( $url )
normalise_url ( string $url ) : string Takes a request URL and "normalises" it, stripping common elements

메소드 상세

get_redirect_post_id() 정적인 공개 메소드

static public get_redirect_post_id ( $url )

get_redirect_uri() 정적인 공개 메소드

static public get_redirect_uri ( $url )

init() 정적인 공개 메소드

static public init ( )

insert_legacy_redirect() 정적인 공개 메소드

static public insert_legacy_redirect ( string $from_url, integer | string $redirect_to ) : boolean | WP_Error
$from_url string URL or path that should be redirected; should have leading slash if path.
$redirect_to integer | string The post ID or URL to redirect to.
리턴 boolean | WP_Error Error if invalid redirect URL specified or if the URI already has a rule; false if not is_admin, true otherwise.

maybe_do_redirect() 정적인 공개 메소드

static public maybe_do_redirect ( )

start() 정적인 공개 메소드

static public start ( )