Remove CapsLock Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
This plugin automatically filters the content of headings, content and comments, searching and normalizing uppercase text.
Optionally you can customize the minimum amount of consecutive characters for each type of content (title, content, comments) before trigger the cleaning function on that string.
This plugin only changes what is displayed without affecting what is stored in the wordpress database! If you want to change permanently the website content/titles you need to modify posts
SETUP
You can customize the plugin options if needed adding to functions.php the needed filters.
There are two kind of filters you can set:
– The first is to set your own set of hook+rule
add_action( 'init', function() {
add_filter( 'rcl_hook_filters', function () { return array(
array( 'hook' => 'the_title', 'allowed_chars' => 6 ), // title
array( 'hook' => 'comment_text', 'allowed_chars' => 5 ), // comments
array( 'hook' => 'widget_title', 'allowed_chars' => 6 ), // widget
);
} );
} );
-
The second one allows to edit a single filter value (anyway it doesn’t create any other filter)
To disable the filter (while continue to use the rest of the standard set) you need to set “-1” as valueadd_filter( ‘rcl_the_title’, function () { return 60; } );
add_filter( ‘rcl_comment_text’, function () { return 3; } );
add_filter( ‘rcl_widget_title’, function () { return -1; } ); // disabled
One last note, since the main post/page content has a different content type (isn’t a string) you need to set the filter for the post content as below.
add_filter( 'rcl_the_content', function () { return 10; } );
// OR
// add_filter( 'rcl_the_content', function () { return -1; } ); // disabled
copyright
Remove CapsLock, Copyright 2021 Codekraft Studio
Remove CapsLock is distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the LICENSE file for more details.
Screenshots
No screenshots provided