wpcf7_swv_available_rules()
Returns an associative array of SWV rules.
Хуки из функции
Возвращает
null
. Ничего.
Использование
wpcf7_swv_available_rules();
Код wpcf7_swv_available_rules() wpcf7 swv available rules CF7 5.7.5.1
function wpcf7_swv_available_rules() { $rules = array( 'required' => 'WPCF7_SWV_RequiredRule', 'requiredfile' => 'WPCF7_SWV_RequiredFileRule', 'email' => 'WPCF7_SWV_EmailRule', 'url' => 'WPCF7_SWV_URLRule', 'tel' => 'WPCF7_SWV_TelRule', 'number' => 'WPCF7_SWV_NumberRule', 'date' => 'WPCF7_SWV_DateRule', 'file' => 'WPCF7_SWV_FileRule', 'enum' => 'WPCF7_SWV_EnumRule', 'minitems' => 'WPCF7_SWV_MinItemsRule', 'maxitems' => 'WPCF7_SWV_MaxItemsRule', 'minlength' => 'WPCF7_SWV_MinLengthRule', 'maxlength' => 'WPCF7_SWV_MaxLengthRule', 'minnumber' => 'WPCF7_SWV_MinNumberRule', 'maxnumber' => 'WPCF7_SWV_MaxNumberRule', 'mindate' => 'WPCF7_SWV_MinDateRule', 'maxdate' => 'WPCF7_SWV_MaxDateRule', 'minfilesize' => 'WPCF7_SWV_MinFileSizeRule', 'maxfilesize' => 'WPCF7_SWV_MaxFileSizeRule', ); return apply_filters( 'wpcf7_swv_available_rules', $rules ); }