Created
January 31, 2022 18:28
-
-
Save dparker1005/f2025e7a8e87efe56ad43af2fd30397f to your computer and use it in GitHub Desktop.
Increases the number of prices shown in the "Sales and Revenue" report widget to 10.
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 | |
// Copy from below here... | |
/** | |
* Increases the number of prices shown in the "Sales and Revenue" report | |
* widget to 10. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_admin_reports_max_sale_prices( $num_prices ) { | |
return 10; | |
} | |
add_filter( 'pmpro_admin_reports_max_sale_prices', 'my_pmpro_admin_reports_max_sale_prices' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment