- WordPress 6.9.4 (es_ES) with Kadence theme - Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto - Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold - Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI) - Plugins: Kadence Blocks, Polylang, Contact Form 7 - Custom CSS with full brand styling and responsive layout - HTTPS enforced via wp-config.php proxy detection
32 lines
503 B
PHP
32 lines
503 B
PHP
<?php
|
|
|
|
namespace Contactable\SWV;
|
|
|
|
class AnyRule extends CompositeRule {
|
|
|
|
const rule_name = 'any';
|
|
|
|
public function matches( $context ) {
|
|
if ( false === parent::matches( $context ) ) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
public function validate( $context ) {
|
|
foreach ( $this->rules() as $rule ) {
|
|
if ( $rule->matches( $context ) ) {
|
|
$result = $rule->validate( $context );
|
|
|
|
if ( ! is_wp_error( $result ) ) {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
return $this->create_error();
|
|
}
|
|
|
|
}
|