wpcf7_form_title_attr

The contact-form-7 wpcf7 form title attr hook.

Published Date - July 22, 2023

Description

$title_attr = apply_filters( 'wpcf7_form_title_attr', $args['html_title'] );

Parameters

  1. $args['html_title']


Usage

The following example is for adding a hook callback.

// define the wpcf7_form_title_attr callback 
function custom_wpcf7_form_title_attr( $args['html_title'] ){ 
   //custom code here
    return $args['html_title']
} 

//add the action 
add_filter('wpcf7_form_title_attr', 'custom_wpcf7_form_title_attr', 10, 1)

Defined

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

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

$title_attr = apply_filters( 'wpcf7_form_title_attr', $args['html_title'] );