Skip to content

Commit

Permalink
- adding a new more descriptive label to filters
Browse files Browse the repository at this point in the history
  • Loading branch information
curtismchale committed Apr 4, 2024
1 parent 95e65c4 commit 43f7573
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ public function printWidget( $args, $instance ) {
// Include the template file
include( $file );
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<div class="views-exposed-form">
<?php $teaser_filter_class->print_filters(); ?>
</div>
<div class="views-exposed-form"><!-- wp-proud-core/modules/proud-widget/widgets/teaser-list/templates/teaser-filters.php -->
<?php
/**
* print_filters is found in wp-proud-core/modules/proud-widget/widgets/teaser-list/teaser-filter-widgets.php
*
* @param bool $include_filters required True or at least not empty to include the filters
* @param string $button_text optional Defaults to Filters, put in your own text if you want a different button text label
*/
$teaser_filter_class->print_filters( null, 'Apply Filters' );
?>
</div>

0 comments on commit 43f7573

Please sign in to comment.