如何限制可以输入 Dokan 产品标题字段的字符数?

问题描述

我需要限制可以输入到下面的字符数。

<div class="dokan-form-group">
  <input type="hidden" name="dokan_product_id" id="dokan-edit-product-id" value="<?PHP echo esc_attr( $post_id ); ?>"/>

  <label for="post_title" class="form-label"><?PHP esc_html_e( 'Product Name','dokan-lite' ); ?></label>
  <?PHP dokan_post_input_Box ( $post_id,'post_title',array( 'placeholder' => __( 'Product name..','dokan-lite' ),'value' => $post_title ) ); ?>
  <div class="dokan-product-title-alert dokan-hide">
    <?PHP esc_html_e( 'Please enter product name!','dokan-lite' ); ?>
  </div>
</div>

前端输入的屏幕截图:

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)