• Simple and well done, it perfectly fit several scenarios.

    For future improvements: enqueue the script on frontend to support front-end editing, add text customisation for error message, migrate to vanilla js.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Code and Core

    (@codeandcore)

    Thanks a lot for the feedback! Really glad to hear it worked well for your needs.

    We’ll be working on enqueuing the script on the frontend to support front-end editing. Custom text for error messages and a move to vanilla JS are also on the roadmap. Appreciate the suggestions, they’ll help make future versions even better!

    Thread Starter Francesco T

    (@ventitrix)

    One more note. Encoded characters count differently in php compared to js, leading to error message while saving. My suggestion would be decoding entities before counting. Eg: swap line 45 in includes/field-customization.php

    $char_count = mb_strlen(wp_strip_all_tags($value));

    with the following lines:

    $clean_text = wp_strip_all_tags($value);

    $clean_text = html_entity_decode($clean_text, ENT_QUOTES | ENT_HTML5, 'UTF-8');

    $char_count = mb_strlen($clean_text);
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this review.