Created
June 9, 2022 11:17
-
-
Save J-H-Mojumder/26a43ca09e375fcab046a1d545fb24fe to your computer and use it in GitHub Desktop.
Control number of products to be shown on the single store page's featured section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'dokan_featured_product_section_item_count' , 'control_featured_section_of_single_store' ); | |
function control_featured_section_of_single_store ($columns){ | |
$columns = 4; //enter your desired number of products | |
return $columns; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment