wpcf7_swv_load_rules()CF7 1.0

Loads SWV fules.

Хуков нет.

Возвращает

null. Ничего.

Использование

wpcf7_swv_load_rules();

Код wpcf7_swv_load_rules() CF7 5.6.2

function wpcf7_swv_load_rules() {
	$rules = wpcf7_swv_available_rules();

	foreach ( array_keys( $rules ) as $rule ) {
		$file = sprintf( '%s.php', $rule );
		$path = path_join( WPCF7_PLUGIN_DIR . '/includes/swv/rules', $file );

		if ( file_exists( $path ) ) {
			include_once $path;
		}
	}
}