Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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