YoastWPSEOallowlist_permalink_vars

YoastWPSEOallowlist_permalink_vars

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.23.8

apply_filters('YoastWPSEOallowlist_permalink_vars') is found 1 times:

  • /src/helpers/crawl-cleanup-helper.php line 96
    		 * @since 19.2.0
    		 *
    		 * @param array $allowed_extravars The list of the allowed vars (empty by default).
    		 */
    		$allowed_extravars = \apply_filters( 'Yoast\WP\SEO\allowlist_permalink_vars', $default_allowed_extravars );
    
    		$clean_permalinks_extra_variables = $this->options_helper->get( 'clean_permalinks_extra_variables' );
    
    		if ( $clean_permalinks_extra_variables !== '' ) {
    			$allowed_extravars = \array_merge( $allowed_extravars, \explode( ',', $clean_permalinks_extra_variables ) );
    		}