evolve_get_error
The evolve evolve get error hook.
Description
Parameters (1)
- 0. $string_error (string) =>
(string) $error
- The string
error
.
Usage
- To run the hook, copy the example below.
- $string_error = apply_filters( 'evolve_get_error', $string_error );
- if ( !empty( $string_error ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the evolve_get_error callback
- function filter_evolve_get_error( $string_error ) {
- // make filter magic happen here...
- return $string_error;
- };
- // add the filter
- add_filter( 'evolve_get_error', 'filter_evolve_get_error', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'evolve_get_error', 'filter_evolve_get_error', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /library/functions/functions.php
- $error = apply_filters('evolve_get_error', (string) $error); // Available filter: evolve_get_error