scossdl_off_exclude_match()WPSCache 1.0

Determines whether to exclude a match.

No Hooks.

Return

true|false. true if to exclude given match from rewriting.

Usage

scossdl_off_exclude_match( $match, $excludes );
$match(string) (required)
URI to examine.
$excludes(array) (required)
Array of "badwords".

scossdl_off_exclude_match() code WPSCache 1.12.0

function scossdl_off_exclude_match( $match, $excludes ) {
	foreach ( $excludes as $badword ) {
		if ( false !== stripos( $match, $badword ) ) {
			return true;
		}
	}

	return false;
}