scossdl_off_exclude_match()
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() scossdl off exclude match code WPSCache 1.12.4
function scossdl_off_exclude_match( $match, $excludes ) { foreach ( $excludes as $badword ) { if ( false !== stripos( $match, $badword ) ) { return true; } } return false; }