Increase Maximum Blocked Keywords in Messages

Hello,

At the moment, only 272 lines are allowed in the blocked keywords section for the messages extension in the settings. Is there a way to increase this? I actually have almost 10,000 I’d like to add.

I’m fine locating a file in the plugin files and inserting a list there if it’s possible, or maybe you have a PHP snippet?

Thank you,
Andrew

Please try this PHP snippet but please note that it can require further customization

add_filter(
	'hivepress/v1/settings',
	function( $settings ) {
		if(hivepress()->get_version('messages')){
			$settings['messages']['sections']['sending']['fields']['message_blocked_keywords']['max_length'] = 10000;
		}
		
		return $settings;
	},
	1000
);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.