Created
January 7, 2021 12:27
-
-
Save eri-trabiccolo/4b7790ba302f33d947b594d5bbc9f105 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 // dont copy this to your functios.php file | |
/** | |
* Change the maximum number of access plans which can be created for a single course / membership | |
* | |
* @param int $cols The number of columns of the pricing table for the `$product`. | |
* @return int | |
*/ | |
function my_llms_get_product_pricing_table_columns_count( $cols ) { | |
// Always organize pricing table in rows of 3 colums, when plans are more than 6. | |
return $cols > 6 ? 3 : $cols; | |
} | |
add_filter( 'llms_get_product_pricing_table_columns_count', 'my_llms_get_product_pricing_table_columns_count' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment