wpcf7_load_css

The contact-form-7 wpcf7 load css hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_load_css', WPCF7_LOAD_CSS );

Parameters

  1. $WPCF7_LOAD_CSS


Usage

The following example is for adding a hook callback.

// define the wpcf7_load_css callback 
function custom_wpcf7_load_css( $WPCF7_LOAD_CSS ){ 
   //custom code here
    return $WPCF7_LOAD_CSS
} 

//add the action 
add_filter('wpcf7_load_css', 'custom_wpcf7_load_css', 10, 1)

Defined

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

contact-form-7/includes/functions.php

return apply_filters( 'wpcf7_load_css', WPCF7_LOAD_CSS );