How do I add a filter for a function in the functions.php
-
Hello Guys,
hope someone can help me.
in the file class-product-cat-list-walker.php from woocommerce there is the function:public function start_lvl( &$output, $depth = 0, $args = array() ) { if ( 'list' != $args['style'] ) return; $indent = str_repeat("\t", $depth); $output .= "$indent<ul class='children'>\n"; }
I would like to have a filter or action in the functions.php of my theme to change the line
$output .= "$indent<ul class='children'>\n";
into$output .= "$indent<ul class='children' style='padding-left: 15px;'>\n";
Is there a way to do this? a custom filter or action?
thanks for help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How do I add a filter for a function in the functions.php’ is closed to new replies.