wpcf7_swv_available_rules

The contact-form-7 wpcf7 swv available rules hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_swv_available_rules', $rules );

Parameters

  1. $rules


Usage

The following example is for adding a hook callback.

// define the wpcf7_swv_available_rules callback 
function custom_wpcf7_swv_available_rules( $rules ){ 
   //custom code here
    return $rules
} 

//add the action 
add_filter('wpcf7_swv_available_rules', 'custom_wpcf7_swv_available_rules', 10, 1)

Defined

The filter is defined in the following location(s).

contact-form-7/includes/swv/swv.php

return apply_filters( 'wpcf7_swv_available_rules', $rules );