wpcf7_contact_form_shortcode
Использование
add_filter( 'wpcf7_contact_form_shortcode', 'wp_kama_wpcf7_contact_form_shortcode_filter', 10, 3 ); /** * Function for `wpcf7_contact_form_shortcode` filter-hook. * * @param $shortcode * @param $options * @param $that * * @return */ function wp_kama_wpcf7_contact_form_shortcode_filter( $shortcode, $options, $that ){ // filter... return $shortcode; }
- $shortcode
- -
- $options
- -
- $that
- -
Где вызывается хук
wpcf7_contact_form_shortcode
contact-form-7/includes/contact-form.php 1374-1376
return apply_filters( 'wpcf7_contact_form_shortcode', $shortcode, $options, $this );