scossdl_off_exclude_match()
Determines whether to exclude a match.
No Hooks.
Returns
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() scossdl off exclude match code WPSCache 3.1.0
function scossdl_off_exclude_match( $match, $excludes ) {
foreach ( $excludes as $badword ) {
if ( false !== stripos( $match, $badword ) ) {
return true;
}
}
return false;
}