Skip to content

Instantly share code, notes, and snippets.

@akther80
Created April 14, 2023 06:53
Show Gist options
  • Save akther80/9eaeb417dc74329925b2d4780bae5e78 to your computer and use it in GitHub Desktop.
Save akther80/9eaeb417dc74329925b2d4780bae5e78 to your computer and use it in GitHub Desktop.
Cartzilla - Change Dokan vendor products column
if ( ! function_exists( 'cartzilla_dokan_vendor_page_columns' ) ) {
function cartzilla_dokan_vendor_page_columns( $columns ) {
$layout = get_theme_mod( 'store_layout', 'left' );
if ( 'left' === $layout || 'right' === $layout ) {
$columns = 2;
} else {
$columns = 3;
}
return $columns;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment