Solved the issue. Thank you @birgire for giving me a hint. First I edited MySQL wp_comments table by changing comment_content rows «Type» from TEXT to MEDIUMTEXT and restarted MySQL. Then created filter in functions.php:
add_filter( 'wp_get_comment_fields_max_lengths', 'my_length' );
function my_length ( $lengths ) {
global $wpdb;
$lengths = array(
'comment_author' => 245,
'comment_author_email' => 100,
'comment_author_url' => 200,
'comment_content' => 16777215, //it was 65525
);
return $lengths;
}
and it worked 🙂 but let me know if I can make the filter more simpler? without array?! Thank you.
Related Posts:
- Is it possible to filter comments in a post so a user can only see the comments they have written?
- How to enable visual editor when editing comments on the dashboard?
- Adding custom column to comments admin panel?
- Why anything done on comments_array hook gets reset?
- How Does comment_author Filter Work?
- How to modify core when there is no hook?
- How to validate recaptcha on comments form?
- I want to allow the use of a data-flw attribute in links in comments
- Comment search plugin
- Filtering Comment Reply Links (comment_reply_link_args) for “infinite replies” in nested comments
- How to allow code block in wordpress comments
- Use of comment_reply_link_args filter
- Remove Comment Author Link only for subscribers
- Use has_filter on comment_post
- Remove comments validation (remove filter?)
- How do I add tags to entire comments, not just their text
- comment_notification_text filter not working
- Modify author url display in edit-comments.php
- How can I filter the comment action links so that I can display the actions links based on user capabilities?
- Converting restricted html in comments to bbcode
- Remove rel=”ugc” from links in comments
- Sanitize and data validation with apply_filters() function
- How many filter/action hooks are healthy?
- Filter specific shortcode output?
- remove_filter( ‘the_content’, ‘wpautop’ ); only for certain post types
- Valid characters for actions, hooks and filters
- How to hook into unregistering a widget instance?
- How can I extend the Gutenberg table block transform to allow colspans/rowspans on pasted table elements?
- How do I use the ‘http_request_host_is_external’ filter
- get_option() filtering and getting out of recursion
- Get excerpt from $post->post_content
- AJAX filter posts on click based on category
- How can I filter Microsoft Word gunk from pasted content?
- How to disable all WordPress emails modularly and programatically?
- Can I add custom meta for each image uploaded via media-upload.php?
- How do I know if author field was changed on post save?
- Allow Profile HTML for select users
- WordPress 3.5+ upload tool filter
- Some questions regarding filter
- Use content custom filter for all shortcodes
- Filter all html output
- Problem getting single_template filter to work – I want to serve a different single.php file for posts in a certain category
- Which hook is fired when inserting media into a post
- How to specify which category of the post to use in case of multiple categories
- Return array of images after content
- failed to filter hook `get_terms_defaults`
- return values from hooks do_action and apply_filters, which is better
- Using Conditional Statement in functions.php
- get_title without filter(the_title)
- How can filters be run when they are never applied?
- How to filter a wordpress core function?
- get_bookmarks filter not supplying query argument (wp 3.1)
- Function the_content not working
- Is there a filter called ‘network_admin_init’?
- Manipulating show_on_front, page_on_front, page_for_posts and template hierarchy
- Post Content, Special Characters and Filters
- Correct method of redirecting user login
- Filter In Reply comments from WordPress Admin Panel
- Creating a plugin to sanitize comment and the url field before display only
- Does a plugin with a AJAX button filter exist? [closed]
- Admin filter for product SKU?
- Filtering the post list in the admin area
- Filter pre_get_posts does not modify Mine/All/Pending
- How to check if a protected hook is hooked?
- Add a div of content within the_content after a certain block
- Gutenberg Block – Post Featured Image Filter Hook
- Translate custom order status through a filter?
- Using preg_replace() with the_content filter
- term_link filter gives less atributes
- Add mime types with plugin
- Is there a way to globallly apply esc_html( … ) to all inputs and anchors to filter out XSS markup?
- WP 4.5 hide core customizer sections
- Custom nav walker: How to acces the $args parameter?
- How to stop the deduction in “wp_term_taxonomy” count, when the post is deleted?
- alternative to the_content filter
- Same URL for portfolio and for a page creates 404 error. Is there any filter that i can use for a child page?
- Filter widget_posts_args not working
- how to unescape wordpress output
- Database & Post Search
- login_url filter creates permanent wp-admin -> wp-login redirection loop
- How can I change the button text of a custom widget?
- Hide a specific post from Archive Feed
- Restrict access to custom post type and filter from every query
- How to use the filter ‘widget_text’ to a particular text widget with id
- Custom xmlrpc request does not pass parameters?
- Problem with shortcodes in external file
- WordPress URL rewrite problem
- How to turn this customized core function into a filter/action in functions.php?
- Which hook should be used in this case?
- Categorize posts on a page o the basis of category of other post on the same page
- manage_users_custom_columns filter not firing callback functions
- Conditionally including JS based on whether ACF field is set [closed]
- How to use apply_filters(‘get_calendar’) to change get_calendar() output?
- How to add custom HTML attribute to reusable block div in WordPress admin
- Hooking/Filtering theme name to add theme directory
- posts_results filter – additional sort, with a meta value, to move posts to the end of the results, with pagination working
- How to use parse_query() to add an additional filter based on content to page search?
- FacetWP was unable to auto-detect the post listing : Having an issue with ACF load choices causing FacetWP error
- add_filter – create_function pb in PHP8
- Woocommerce price filter widget always shows max price of most expensive product in the whole shop