Action: srm_redirect_only_on_404

do_action( 'srm_redirect_only_on_404', $404_redirects_only, Bool )

Filter whether to only redirect on 404 File Not Found pages.

Parameters:
Name Type Description
$404_redirects_only bool

Whether to redirect file not found requests only. Default false.

Bool bool

to redirect file not found requests.

Source:

apply_filters( 'srm_redirect_only_on_404', $redirect_only_on_404 ) → {bool}

Whether to redirect only on 404 error.

Parameters:
Name Type Description
$redirect_only_on_404 bool

Whether to redirect only on 404 error. Default is false.

Source:
Returns:

Bool to redirect only on 404 error.

Type
bool