From b773864315a9dbf9eac55581fc77c75a4fadff62 Mon Sep 17 00:00:00 2001 From: Anh Tran Date: Thu, 14 Mar 2024 11:05:19 +0700 Subject: [PATCH] Version 1.2.0 --- README.md | 4 ++-- readme.txt | 16 ++++++++++------ text-limiter.php | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 44f6eff..5ad9c37 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Meta Box Text Limiter Plugin -Text Limiter is an extension for [Meta Box](https://metabox.io) plugin which allows you to limit number of characters or words entered for text and textarea fields. +Text Limiter is an extension for [Meta Box](https://metabox.io) plugin which allows you to limit number of characters or words entered for [text](https://docs.metabox.io/fields/text/), [textarea](https://docs.metabox.io/fields/textarea/) and [WYSIWYG](https://docs.metabox.io/fields/wysiwyg/) fields. ## Usage -To start using text limiter, just add the following parameters to `text` or `textarea` fields: +To start using text limiter, just add the following parameters to `text`, `textarea`, or `wysiwyg` fields: ```php 'limit' => 20, // Number of characters or words diff --git a/readme.txt b/readme.txt index 76e9067..0a6bb89 100644 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,10 @@ === Meta Box Text Limiter === Contributors: metabox, rilwis Donate link: https://metabox.io -Tags: meta-box, custom-fields, custom-field, meta, meta-boxes, text limit, character limit, word limit -Requires at least: 5.0 -Tested up to: 5.6 -Stable tag: 1.1.3 +Tags: custom fields, meta box, text limit +Requires at least: 5.9 +Tested up to: 6.4.3 +Stable tag: 1.2.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -12,11 +12,11 @@ Limit number of characters or words entered for text and textarea fields in meta == Description == -Text Limiter is an extension for [Meta Box](https://metabox.io) plugin which allows you to limit number of characters or words entered for text and textarea fields. +Text Limiter is an extension for [Meta Box](https://metabox.io) plugin which allows you to limit number of characters or words entered for [text](https://docs.metabox.io/fields/text/), [textarea](https://docs.metabox.io/fields/textarea/) and [WYSIWYG](https://docs.metabox.io/fields/wysiwyg/) fields. ### Usage -To start using text limiter, just add the following parameters to `text` or `textarea` fields: +To start using text limiter, just add the following parameters to `text`, `textarea` or `wysiwyg` fields: `'limit' => 20, // Number of characters or words 'limit_type' => 'character', // Limit by 'character' or 'word'. Optional. Default is 'character'` @@ -54,6 +54,10 @@ To start using text limiter, just add the following parameters to `text` or `tex == Changelog == += 1.2.0 - 2024-03-14 = +- Add support for WYSIWYG field +- Update the style + = 1.1.3 - 2021-04-24 = * Fix notice "Trying to access array offset" (by checking field value if field not found). diff --git a/text-limiter.php b/text-limiter.php index 66cfb30..15de95b 100644 --- a/text-limiter.php +++ b/text-limiter.php @@ -3,7 +3,7 @@ * Plugin Name: Meta Box Text Limiter * Plugin URI: https://metabox.io/plugins/meta-box-text-limiter/ * Description: Limit number of characters or words entered for text and textarea fields. - * Version: 1.1.3 + * Version: 1.2.0 * Author: MetaBox.io * Author URI: https://metabox.io *