{"id":3226,"date":"2022-08-11T11:09:39","date_gmt":"2022-08-11T09:09:39","guid":{"rendered":"https:\/\/davidperezgar.com\/?p=3226"},"modified":"2024-08-03T13:19:08","modified_gmt":"2024-08-03T11:19:08","slug":"ajax-javascript-vanilla-and-native-metaboxes-in-2-5-visual-code-extension","status":"publish","type":"post","link":"https:\/\/davidperezgar.com\/en\/blog\/ajax-javascript-vanilla-and-native-metaboxes-in-2-5-visual-code-extension\/","title":{"rendered":"Vanilla AJAX Javascript and native metaboxes in 2.5 Visual Code Extension"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;ve updated my toolbox for <a href=\"https:\/\/close.technology\/\" target=\"_blank\" rel=\"noopener\">developing in WordPress<\/a> and mainly worked on making easy transients, Metaboxes and AJAX with vanilla JavaScript. I am working to remove jQuery from all of our development.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At the moment, it has over 11,000 installs &#8211; that&#8217;s huge for me! You can download <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=closemarketing.wp-development-toolbox\" target=\"_blank\" rel=\"noopener\">WP Development Toolbox<\/a> and over 34,000 downloads here<\/p> <p>.\n\n\n\n<p class=\"wp-block-paragraph\">This is the list:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Code snippets added<\/h2>.\n\n\n\n<ul class=\"wp-block-list\"><li>(wpatra) Create transient for WordPress<\/li><li>(wpadef) WordPress Define default constants for Plugin<\/li><li>(wpamet) Register metabox for a post type<\/li><li>(gfapdf) GravityForms PDF -. Set Templates directory in Plugin<\/li><li>(wprjq) Remove jQuery loading<\/li><li>(wpajxq) Ajax button with jQuery<\/li><li>(wpameu) Register meta for a user<\/li><\/ul>.\n\n\n\n<h2 class=\"wp-block-heading\">Fragments updated<\/h2>.\n\n\n\n<ul class=\"wp-block-list\"><li>(wpapuh) With default counters<\/li><li>(wpamet) New Metabox fields<\/li><li><li>(wpajx) AJAX updated with vanilla JavaScript<\/li><\/ul>.\n\n\n\n<p class=\"wp-block-paragraph\">Enjoy it and <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=closemarketing.wp-development-toolbox&amp;ssr=false#review-details\" target=\"_blank\" rel=\"noopener\">please do a review<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve updated my WordPress development toolbox and mainly worked on making easy transients, Metaboxes and AJAX with vanilla JavaScript. I&#8217;m working on removing jQuery from all of our development. At this point, it has over 11,000 installs &#8211; that&#8217;s huge for me! You can download here WP Development Toolbox and more than [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":4122,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","inline_featured_image":false,"_ayudawp_aiss_exclude":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"editor_notices":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3226","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/posts\/3226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/comments?post=3226"}],"version-history":[{"count":0,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/posts\/3226\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/media\/4122"}],"wp:attachment":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/media?parent=3226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/categories?post=3226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/tags?post=3226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}