Wordpress プラグインFront End PMでタイトルと本文の文字数制限を調整する方法
編集するのは、このファイル
有料版:wp-content/plugins/front-end-pm-pro/includes/class-fep-form.php
無料版:wp-content/plugins/front-end-pm/includes/class-fep-form.php
'message_title' => array( 'label' => __( 'Subject', 'front-end-pm' ), //'description' => __( 'Enter your message subject here', 'front-end-pm' ), 'type' => 'text', 'required' => true, 'placeholder' => __( 'Subject', 'front-end-pm' ), 'minlength' => 5, 'maxlength' => 100, 'disabled' => false, 'value' => '', 'id' => 'message_title', 'name' => 'message_title', 'class' => 'input-text', 'priority' => 10, 'where' => array( 'newmessage', 'shortcode-newmessage', 'new_announcement' ), ), 'message_content' => array( 'label' => __( 'Message', 'front-end-pm' ), 'type' => ( 'shortcode-newmessage' == $where ) ? 'textarea' : fep_get_option( 'editor_type','wp_editor' ), //Ajax form submit creating problem with wp_editor 'required' => true, 'minlength' => 10, 'maxlength' => 5000, 'placeholder' => '', 'priority' => 15, 'value' => '', 'where' => array( 'newmessage', 'reply', 'shortcode-newmessage', 'new_announcement' ), ),
'minlength'と'maxlength'を調整する