redirect_relocate_protected

redirect_relocate_protected

Hook Type: filter

See hook in core

Displaying hooks found in version: redirection.5.5.1

apply_filters('redirect_relocate_protected') is found 1 times:

  • /models/canonical.php line 174
    	 */
    	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 ) {