The contact-form-7 wpcf7 form title attr hook.
Published Date - July 22, 2023
$title_attr = apply_filters( 'wpcf7_form_title_attr', $args['html_title'] );
$args['html_title']
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)
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'] );