{"id":19009495,"date":"2026-09-02T10:58:22","date_gmt":"2026-09-02T10:58:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/validate-user-input\/"},"modified":"2026-09-02T10:58:22","modified_gmt":"2026-09-02T10:58:22","slug":"validate-user-input","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/validate-user-input\/","title":{"rendered":"Validate user input"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I need to validate the text a user inputs in an input field. Before sending, the plugin should check if some conditions are met (example if there are only numbers in the field).<br \/>I can&#8217;t find the options to do so though. Is there a way to do it?<\/p>\n","protected":false},"template":"","class_list":["post-19009495","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19009495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19009495\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19009495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}