Add params and docblocks to the new hooks

Add params and docblocks to the new proposed hooks woocommerce_widget_layered_nav_filters_start and woocommerce_widget_layered_nav_filters_end
This commit is contained in:
Marco Almeida 2023-03-03 10:13:13 +00:00 committed by GitHub
parent 53f80a24f6
commit 987b4feb24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 4 deletions

View File

@ -56,7 +56,13 @@ class WC_Widget_Layered_Nav_Filters extends WC_Widget {
echo '<ul>'; echo '<ul>';
do_action( 'woocommerce_widget_layered_nav_filters_start' ); /**
* Allow 3rd party developers to add their own filters to start the Layered Navigation Filters Widget.
*
* @param array $args Arguments.
* @param array $instance Widget instance.
*/
do_action( 'woocommerce_widget_layered_nav_filters_start', $args, $instance );
// Attributes. // Attributes.
if ( ! empty( $_chosen_attributes ) ) { if ( ! empty( $_chosen_attributes ) ) {
@ -107,7 +113,13 @@ class WC_Widget_Layered_Nav_Filters extends WC_Widget {
} }
} }
do_action( 'woocommerce_widget_layered_nav_filters_end' ); /**
* Allow 3rd party developers to add their own filters to end the Layered Navigation Filters Widget.
*
* @param array $args Arguments.
* @param array $instance Widget instance.
*/
do_action( 'woocommerce_widget_layered_nav_filters_end', $args, $instance );
echo '</ul>'; echo '</ul>';