wpseo_remove_cat_parameter, true
wpseo_remove_cat_parameter, true
Appears in: wordpress-seo.28.1
Hook Type: filter
Displaying hooks found in version: wordpress-seo.28.1apply_filters('wpseo_remove_cat_parameter, true') is found 1 times:
- /src/integrations/front-end/redirects.php line 264
* @since 19.9 * * @param bool $remove_cat_parameter Whether to remove the `cat=-1` GET parameter. Default true. */ $should_remove_parameter = \apply_filters( 'wpseo_remove_cat_parameter', true ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Data is not processed or saved. if ( $should_remove_parameter && isset( $_GET['cat'] ) && $_GET['cat'] === '-1' ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Data is not processed or saved. unset( $_GET['cat'] ); if ( isset( $_SERVER['REQUEST_URI'] ) ) {