wpcf7_form_action_url

The contact-form-7 wpcf7 form action url hook.

Published Date - July 22, 2023

Description

$url = apply_filters( 'wpcf7_form_action_url', $url );

Parameters

  1. $url


Usage

The following example is for adding a hook callback.

// define the wpcf7_form_action_url callback 
function custom_wpcf7_form_action_url( $url ){ 
   //custom code here
    return $url
} 

//add the action 
add_filter('wpcf7_form_action_url', 'custom_wpcf7_form_action_url', 10, 1)

Defined

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

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

$url = apply_filters( 'wpcf7_form_action_url', $url );