{"id":51961,"date":"2016-11-08T00:08:05","date_gmt":"2016-11-08T00:08:05","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/masks-form-fields\/"},"modified":"2026-01-13T03:49:27","modified_gmt":"2026-01-13T03:49:27","slug":"masks-form-fields","status":"publish","type":"plugin","link":"https:\/\/mn.wordpress.org\/plugins\/masks-form-fields\/","author":15185344,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.12.4","stable_tag":"1.12.4","tested":"6.9.4","requires":"4.5","requires_php":"5.6","requires_plugins":null,"header_name":"Masks Form Fields","header_author":"Ivan Petermann","header_description":"","assets_banners_color":"f2f2f6","last_updated":"2026-01-13 03:49:27","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/ivanpetermann.com\/donation","header_plugin_uri":"https:\/\/ivanpetermann.com\/masks-form-fields\/","header_author_uri":"https:\/\/ivanpetermann.com","rating":5,"author_block_rating":0,"active_installs":10000,"downloads":75134,"num_ratings":23,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"ivanpetermann","date":"2016-12-07 09:41:02"},"1.1":{"tag":"1.1","author":"ivanpetermann","date":"2017-08-07 18:27:24"},"1.10":{"tag":"1.10","author":"ivanpetermann","date":"2024-04-03 18:23:31"},"1.11.1":{"tag":"1.11.1","author":"ivanpetermann","date":"2024-07-10 19:11:02"},"1.11.2":{"tag":"1.11.2","author":"ivanpetermann","date":"2024-10-25 19:53:48"},"1.12.2":{"tag":"1.12.2","author":"ivanpetermann","date":"2025-12-31 16:49:02"},"1.12.3":{"tag":"1.12.3","author":"ivanpetermann","date":"2026-01-13 02:20:22"},"1.12.4":{"tag":"1.12.4","author":"ivanpetermann","date":"2026-01-13 03:49:27"},"1.2":{"tag":"1.2","author":"ivanpetermann","date":"2017-12-07 18:19:33"},"1.3":{"tag":"1.3","author":"ivanpetermann","date":"2019-06-10 23:28:14"},"1.4":{"tag":"1.4","author":"ivanpetermann","date":"2020-08-12 03:18:49"},"1.5":{"tag":"1.5","author":"ivanpetermann","date":"2021-05-08 03:01:06"},"1.6":{"tag":"1.6","author":"ivanpetermann","date":"2021-07-23 17:31:37"},"1.7":{"tag":"1.7","author":"ivanpetermann","date":"2021-08-27 12:53:05"},"1.8":{"tag":"1.8","author":"ivanpetermann","date":"2022-01-24 12:53:24"},"1.9":{"tag":"1.9","author":"ivanpetermann","date":"2023-11-03 16:43:21"}},"upgrade_notice":{"1.12.4":"<ul>\n<li>General fixes.<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":23},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1530096,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1530096,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":1530096,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.10","1.11.1","1.11.2","1.12.2","1.12.3","1.12.4","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1152,2240,361,557,2644],"plugin_category":[41,42],"plugin_contributors":[126004],"plugin_business_model":[],"class_list":["post-51961","plugin","type-plugin","status-publish","hentry","plugin_tags-contact-form-7","plugin_tags-field","plugin_tags-form","plugin_tags-mask","plugin_tags-phone","plugin_category-communication","plugin_category-contact-forms","plugin_contributors-ivanpetermann","plugin_committers-ivanpetermann"],"banners":{"banner":"https:\/\/ps.w.org\/masks-form-fields\/assets\/banner-772x250.png?rev=1530096","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/masks-form-fields\/assets\/icon-128x128.png?rev=1530096","icon_2x":"https:\/\/ps.w.org\/masks-form-fields\/assets\/icon-256x256.png?rev=1530096","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Add a class in the form field.<\/p>\n\n<p>Example of use with <a href=\"https:\/\/wordpress.org\/plugins\/contact-form-7\/\">Contact Form 7<\/a>:<\/p>\n\n<pre><code>[tel your-phone class:phone placeholder \"Phone\"]\n<\/code><\/pre>\n\n<p>Listing of classes available for use.<\/p>\n\n<pre><code>('span.start, input.start').mff_mask('00\/0000');\n('span.date, input.date').mff_mask('00\/00\/0000');\n('span.time, input.time').mff_mask('00:00:00');\n('span.time2, input.time2').mff_mask('00:00');\n('input.date_time').mff_mask('00\/00\/0000 00:00:00');\n('input.date_time2').mff_mask('00\/00\/0000 00:00');\n('input.cep').mff_mask('00000-000', { clearIfNotMatch: true });\n('input.zip').mff_mask('00000');\n('input.phone, input[name=\"phonebr\"]').mff_mask(PhoneMaskBehavior, nonoOptions);\n('input.phone_us').mff_mask('(000) 000-0000');\n('input.taxid').mff_mask('00-0000000');\n('input.ssn').mff_mask('000-00-0000');\n('input.mixed').mff_mask('AAA 000-S0S');\n('input.cpf').mff_mask('000.000.000-00', { reverse: true, clearIfNotMatch: true });\n('input.cnpj').mff_mask('00.000.000\/0000-00', { reverse: true, clearIfNotMatch: true });\n('input.money').mff_mask('000.000.000.000.000,00', { reverse: true });\n('input.money2').mff_mask('#.##0,00', { reverse: true });\n('input.money3').mff_mask('#,##0.00', { reverse: true });\n('input.money4').mff_mask('000,000,000,000,000.00', { reverse: true });\n('input.money5').mff_mask('#.##0', { reverse: true });\n('input.money6').mff_mask('#,##0', { reverse: true });\n('input.ip_address').mff_mask('099.099.099.099');\n('input.percent').mff_mask('##0,00%', { reverse: true });\n('input.percent2').mff_mask('##0.00%', { reverse: true });\n('input.percent3').mff_mask('990,0%', { reverse: true });\n('input.percent4').mff_mask('990.0%', { reverse: true });\n('input.percent5').mff_mask('#,##0%', { reverse: true });\n('input.percent6').mff_mask('#.##0%', { reverse: true });\n<\/code><\/pre>\n\n<p><a href=\"https:\/\/gist.github.com\/petermann\/fd1a898e02ca91a0d7231a9f8ee662b4\">Click here<\/a> for more details on how to add custom mask.<\/p>\n\n<p><strong>Optional<\/strong>\n- Added option for the format of the Brazilian phone number, with attribute <code>name<\/code> equal to <code>phonebr<\/code>.<\/p>\n\n<h3>Credits<\/h3>\n\n<p><a href=\"https:\/\/github.com\/igorescobar\/jQuery-Mask-Plugin\">jQuery Mask Plugin<\/a><\/p>\n\n<!--section=installation-->\n<p>Installing \"Masks Form Fields\" can be done either by searching for \"Masks Form Fields\" via the \"Plugins &gt; Add New\" screen in your WordPress dashboard, or by using the following steps:<\/p>\n\n<ol>\n<li>Download the plugin via WordPress.org<\/li>\n<li>Upload the ZIP file through the 'Plugins &gt; Add New &gt; Upload' screen in your WordPress dashboard<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20is%20the%20plugin%20for%3F'><h3>What is the plugin for?<\/h3><\/dt>\n<dd><p>This plugin to add masks in the form\u2019s fields.<\/p><\/dd>\n<dt id='how%20to%20add%20custom%20mask%3F'><h3>How to add custom mask?<\/h3><\/dt>\n<dd><p><a href=\"https:\/\/gist.github.com\/petermann\/fd1a898e02ca91a0d7231a9f8ee662b4\">Click here<\/a> for more details on how to add custom mask.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.12.4<\/h4>\n\n<ul>\n<li>General fixes.<\/li>\n<\/ul>\n\n<h4>1.12.3<\/h4>\n\n<ul>\n<li>Fix plugin header license and domain path.<\/li>\n<li>Tested in WordPress 6.9<\/li>\n<\/ul>\n\n<h4>1.12.2<\/h4>\n\n<ul>\n<li>Add the clearIfNotMatch option to the Brazilian masks: CEP, CPF, CNPJ, and phone number.<\/li>\n<li>Tested in WordPress 6.8<\/li>\n<\/ul>\n\n<h4>1.11.2<\/h4>\n\n<ul>\n<li>Convert line endings from CRLF to LF<\/li>\n<li>Tested in WordPress 6.7<\/li>\n<\/ul>\n\n<h4>1.11.1<\/h4>\n\n<ul>\n<li>Fixed JS minification conflict: Added semicolon after JSON declaration in wp_add_inline_script. (commit#3529ce1)<\/li>\n<li>Added option for the format of the Brazilian phone number, with attribute 'name' equal to 'phonebr'. (commit#9c14400)<\/li>\n<\/ul>\n\n<h4>1.10<\/h4>\n\n<ul>\n<li>Replaced wp_localize_script with wp_add_inline_script. (commit#6f6dc2d)<\/li>\n<li>Updated minimum WordPress version requirement from 3.9 to 4.5.<\/li>\n<li>Tested in WordPress 6.5<\/li>\n<\/ul>\n\n<h4>1.9<\/h4>\n\n<ul>\n<li>Fixed conflict with another library.<\/li>\n<li>Tested in WordPress 5.9<\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>Added five new mask formats. (date_time2, money5, money6, percent5, percent6)<\/li>\n<li>Updated readme with usage example.<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>Added new mask formats. (start, time2, zip, taxid, ssn, money3, money4, percent2, percent3, percent4)<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>Tested in WordPress 5.8<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Fixed the incorrect value in the localize script.<\/li>\n<li>Tested in WordPress 5.7<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Updated Readme description<\/li>\n<li>Updated jQuery Mask library<\/li>\n<li>Tested in WordPress 5.5<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>2019-06-10<\/li>\n<li>Tested in WordPress 5.2<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>2017-11-20<\/li>\n<li>Tested in WordPress 4.9<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>2017-8-7<\/li>\n<li>Bug fix: remove date and time mask on body class.<\/li>\n<li>Add mask only span and input fields.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>2016-11-3<\/li>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"A plugin to add masks in the form\u2019s fields.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51961"}],"author":[{"embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ivanpetermann"}],"wp:attachment":[{"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51961"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51961"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51961"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51961"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51961"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}