Polecasz, oszczędzasz, kontrolujesz
global $wp;
$show_form = true;
if (isset($GLOBALS['conf']['hide_form'])) {
$link = $_SERVER['REQUEST_URI'];
for ($i = 0; $i < count($GLOBALS['conf']['hide_form']); $i++) {
$check = str_replace("*", "(.*)", $GLOBALS['conf']['hide_form'][$i]['link']);
if (preg_match("%^" . $check . "$%", $link)) {
$show_form = false;
break;
}
}
}
?>