Skip To Main Content

Faust WordPress Plugin Filters

faustwp_exclude_from_public_redirect: excludes certain routes from being redirected when the enable public route redirects setting is active.

Parameter: $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 );
Code language: PHP (php)