Created
December 9, 2025 14:41
-
-
Save jmabbas/761c67166a5f5fa29f1aa13c728af410 to your computer and use it in GitHub Desktop.
Electro - Home v7 slider category
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $cat_args = apply_filters( 'electro_home_v7_slider_with_category_cat_args', array( | |
| 'animation' => $animation, | |
| 'is_enabled' => $cat_options['is_enabled'] ?? 'yes', | |
| 'columns' => $cat_options['columns'] ?? '5', | |
| 'category_args' => array( | |
| 'number' => $cat_options['number'] ?? '5', | |
| 'slug' => ! empty( $cat_options['slug'] ) | |
| ? array_map( 'trim', explode( ',', $cat_options['slug'] ) ) | |
| : '', | |
| 'hide_empty' => isset( $cat_options['hide_empty'] ) | |
| ? filter_var( $cat_options['hide_empty'], FILTER_VALIDATE_BOOLEAN ) | |
| : false, | |
| ) | |
| ) ); | |
| $cat_args['category_args'] = electro_get_atts_for_taxonomy_slugs( $cat_args['category_args'] ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment