Skip to main content

Faust WordPress Plugin Filters

Filters

faustwp_exclude_from_public_redirect

Exclude certain routes from being redirected when the enable public route redirects setting is active.

Parameters

  • $excluded (array): List of WordPress routes to exclude from redirecting.

Example Usage

add_filter( 'faustwp_exclude_from_public_redirect', function( $excluded ) {
$excluded = array_merge( $excluded, [
'checkout',
'cart',
'shop',
]);
return $excluded;
}, 10, 1 );