Update custom CSS filter and documentation

This commit is contained in:
Tetrakern 2024-02-16 15:14:58 +01:00
parent 7b63d88124
commit e3fde34700
2 changed files with 9 additions and 1 deletions

View File

@ -621,6 +621,14 @@ Filters the font array before the bundled-fonts.css stylesheet is built in the `
---
### `apply_filters( 'fictioneer_filter_pre_build_customize_css', $css )`
Filters the CSS compiled from settings and theme options before it is minified and saved under `/cache/customize.css`. You can potentially append your own CSS or modify the current values, although that will require some regex.
**Parameters:**
* $css (string) The compiled customize CSS.
---
### `apply_filters( 'fictioneer_filter_recommendations_card_args', $card_args, $args )`
Filters the arguments passed to the `partials/_card-recommendation` template part in the `fictioneer_recommendations_list( $args )` function, normally added via the `fictioneer_recommendations_after_content` hook.

View File

@ -1032,7 +1032,7 @@ function fictioneer_build_customize_css( $content = null ) {
// --- Filters ---------------------------------------------------------------
$css = apply_filters( 'fictioneer_filter_customize_css', $css );
$css = apply_filters( 'fictioneer_filter_pre_build_customize_css', $css );
// --- Minify ----------------------------------------------------------------