Description
The gravityflowflowchart_print_styles filter allows custom styles to be added to the print flowchart page.
Usage
add_filter( 'gravityflowflowchart_print_styles', 'your_function_name', 10, 1 );
Parameters
| Parameter | Type | Details |
|---|---|---|
| $styles | Array|false | The array of style handles to enqueue. Default: false |
Examples
Enqueue a custom stylesheet on the print flowchart page.
add_filter( 'gravityflowflowchart_print_styles', 'custom_print_flowchart_styles', 10, 1 );
function custom_print_flowchart_styles( $styles ) {
if ( ! is_array( $styles ) ) {
$styles = array();
}
$styles[] = 'my-custom-style';
return $styles;
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This filter is located in gravityflowflowchart/includes/class-print-flowchart.php