redirect_relocate_protected

redirect_relocate_protected

Hook Type: filter

See hook in core

Displaying hooks found in version: redirection.5.5.2

apply_filters('redirect_relocate_protected') is found 1 times:

  • /models/canonical.php line 174
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    */
    public function relocate_request( $relocate, $domain, $request ) {
        $relocate = rtrim( $relocate, '/' );
     
        $protected = apply_filters( 'redirect_relocate_protected', [
            '/wp-admin',
            '/wp-login.php',
            '/wp-json/',
        ] );
     
        $not_protected = array_filter( $protected, function( $base ) use ( $request ) {