메소드 | 설명 | |
---|---|---|
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 |
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. |