Skip to content

Instantly share code, notes, and snippets.

@bogdan-mainwp
Created April 20, 2020 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdan-mainwp/8fab61ca689f24aae74565f714ef00b6 to your computer and use it in GitHub Desktop.
Save bogdan-mainwp/8fab61ca689f24aae74565f714ef00b6 to your computer and use it in GitHub Desktop.
Filter to display custom comment lenght in the MainWP Comments extension
<?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