| 1 |
<?php defined('ABSPATH') or die; |
| 2 |
|
| 3 |
/* |
| 4 |
Plugin Name: Fluent Validator |
| 5 |
Description: Fluent Validator WordPress Plugin to validate data. |
| 6 |
Version: 1.0.0 |
| 7 |
Author: |
| 8 |
Author URI: |
| 9 |
Plugin URI: |
| 10 |
License: GPLv2 or later |
| 11 |
Text Domain: fluentvalidator |
| 12 |
Domain Path: /resources/languages |
| 13 |
*/ |
| 14 |
|
| 15 |
require_once 'autoload.php'; |
| 16 |
|
| 17 |
if (! function_exists('fluentValidator')) { |
| 18 |
function fluentValidator($data = [], $rules = [], $messages = []) { |
| 19 |
return (new \FluentValidator\Validator($data, $rules, $messages)); |
| 20 |
} |
| 21 |
} |
| 22 |
|