Wordpress plugins
Remove CapsLock

Remove CapsLock

Version : 0.1.0
Tested up to : 5.8
Number of download : 11
Author : Erik
Average rating : 0 / 5 on 0 votes 0 votes, 0 avg.rating

Screenshots

Remove CapsLock
Remove CapsLock
Remove CapsLock
Remove CapsLock

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: 1) Create 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 ); } ); } ); 2) Edit a single filter value (it doesn’t create any new filter, only change an already created one). To disable the filter (while continue to use the rest of the standard set) you need to set “-1” as value add_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.

Download now