scossdl_off_exclude_match()
Determines whether to exclude a match.
Хуков нет.
Возвращает
true|false
. true if to exclude given match from rewriting.
Использование
scossdl_off_exclude_match( $match, $excludes );
- $match(строка) (обязательный)
- URI to examine.
- $excludes(массив) (обязательный)
- Array of "badwords".
Код scossdl_off_exclude_match() scossdl off exclude match WPSCache 1.12.4
function scossdl_off_exclude_match( $match, $excludes ) { foreach ( $excludes as $badword ) { if ( false !== stripos( $match, $badword ) ) { return true; } } return false; }