wpseo_remove_cat_parameter

wpseo_remove_cat_parameter

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.19.10

apply_filters('wpseo_remove_cat_parameter') is found 1 times:

  • /src/integrations/front-end/redirects.php line 256
    		 * @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'] ) ) {