The contact-form-7 wpcf7 load css hook.
Published Date - July 22, 2023
return apply_filters( 'wpcf7_load_css', WPCF7_LOAD_CSS );
$WPCF7_LOAD_CSS
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)
The filter is defined in the following location(s).
contact-form-7/includes/functions.php
return apply_filters( 'wpcf7_load_css', WPCF7_LOAD_CSS );