safecss_parse_pre
This action is documented in modules/custom-css/custom-css.php.
Description
Parameters (3)
- 0. $csstidy (csstidy)
- The
csstidy
object - 1. $css (string)
- The css.
- 2. $args (array)
- See self::save(…) docblock for proper
$args
fields
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'safecss_parse_pre', $csstidy, $css, $args );
- The following example is for adding a hook callback.
- // define the safecss_parse_pre callback
- function action_safecss_parse_pre( $csstidy, $css, $args ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'safecss_parse_pre', 'action_safecss_parse_pre', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'safecss_parse_pre', 'action_safecss_parse_pre', 10, 3 );
Defined (1)
The action is defined in the following location(s).
- /modules/custom-css/custom-css.php
- do_action( 'safecss_parse_pre', $csstidy, $css, $args );