Skip to content

Instantly share code, notes, and snippets.

@jmabbas
Created December 9, 2025 14:41
Show Gist options
  • Select an option

  • Save jmabbas/761c67166a5f5fa29f1aa13c728af410 to your computer and use it in GitHub Desktop.

Select an option

Save jmabbas/761c67166a5f5fa29f1aa13c728af410 to your computer and use it in GitHub Desktop.
Electro - Home v7 slider category
$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