Created
April 20, 2020 11:12
-
-
Save bogdan-mainwp/8fab61ca689f24aae74565f714ef00b6 to your computer and use it in GitHub Desktop.
Filter to display custom comment lenght in the MainWP Comments extension
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 the following code snippet to the PHP section of the MainWP Custom Dashboard Extension, | |
// or the functions.php file of the active theme on your Dashboard site. | |
add_filter( 'mainwp_comments_widget_limit_string', 'mycustom_mainwp_comments_widget_limit_string', 10, 1 ); | |
function mycustom_mainwp_comments_widget_limit_string( $length = false ) { | |
return 99999; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment