开发者

How to throw a validation error in Wordpress?

开发者 https://www.devze.com 2023-01-11 17:13 出处:网络
Without using any JavaScript library like JQuery, how do I show an err开发者_开发问答or to the user if the title of the Post exceeds 40 characters? I would like to use WordPress API/ PHP for this.When

Without using any JavaScript library like JQuery, how do I show an err开发者_开发问答or to the user if the title of the Post exceeds 40 characters? I would like to use WordPress API/ PHP for this.


When the form is submitted, check the length of the request parameter and return an error when it's too long.

0

精彩评论

暂无评论...
验证码 换一张
取 消