wpcf7_load_css
The Contact Form 7 wpcf7 load css hook.
Description
Parameters (1)
- 0. $wpcf7_load_css (unknown) =>
WPCF7_LOAD_CSS
- The
wpcf7
load css.
Usage
- To run the hook, copy the example below.
- $wpcf7_load_css = apply_filters( 'wpcf7_load_css', $wpcf7_load_css );
- if ( !empty( $wpcf7_load_css ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wpcf7_load_css callback
- function filter_wpcf7_load_css( $wpcf7_load_css ) {
- // make filter magic happen here...
- return $wpcf7_load_css;
- };
- // add the filter
- add_filter( 'wpcf7_load_css', 'filter_wpcf7_load_css', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wpcf7_load_css', 'filter_wpcf7_load_css', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /includes/functions.php
- return apply_filters( 'wpcf7_load_css', WPCF7_LOAD_CSS );