Custom Walker for widget
-
I’m filter the arguments for the wp_list_pages function that the widget uses but when I add a walker argument, nothing happens.
My filter function:
function cxc_ccchildpages_widget_pages_args($args) { $args['link_after'] = '</div>'; $args['link_before'] = '<div>'; $arg['walker'] = new Svg_Icon_Walker(); return $args; } add_filter('ccchildpages_widget_pages_args', 'cxc_ccchildpages_widget_pages_args');
When I var_dump args the walker item is not there.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Walker for widget’ is closed to new replies.