{"id":262,"date":"2016-08-08T08:26:32","date_gmt":"2016-08-08T08:26:32","guid":{"rendered":"https:\/\/www.acmethemes.com\/blog\/?p=262"},"modified":"2020-02-13T05:30:11","modified_gmt":"2020-02-13T05:30:11","slug":"data-validation-and-sanitization-with-wordpress","status":"publish","type":"post","link":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/","title":{"rendered":"Data Validation and Sanitization with WordPress"},"content":{"rendered":"<h3>What is Data Validation and Sanitization with WordPress?<\/h3>\n<p><strong>1. Data Validation:<\/strong><br \/>\nValidation is to ensure data correctness and usefulness. Untrusted data comes from many sources (users, third party sites, your own database etc.) and all of it needs to be validated both on input and output. Proper security is critical to keeping your site or that of your theme or plugins safe.<\/p>\n<p>Validation simply means the checks that are run to ensure the data you have and what it should be. For example, The email address always contains @ sign. If the input email is without the @ sign it is invalid. So the proper or valid email address should be entered on email field.<\/p>\n<p>Another example is that, while creating an account on a site, we are asked to enter the password twice. Both the passwords are validated; they are checked to confirm whether they both are same or not.<\/p>\n<p>Web application may be vulnerable without practice data validation. While creating an account on a site, we are asked to enter the password twice. Both the passwords are validated; they are checked to confirm whether they both are same or not.<\/p>\n<p>Client-side validation is for user experience. You can inform a user if their input is invalid without making a round trip to the server. However, client-side validation can be bypassed so you should validate server side too, to ensure data integrity.<\/p>\n<p><strong>Significance:<\/strong><\/p>\n<p>For example:<\/p>\n<p>Imagine a webshop database that would allow you to enter a new customer without an address. You would be unable to ship goods to such a customer.<\/p>\n<p>Imagine that the same webshop database stores the country of residence of its customers. If the database doesn\u2019t enforce a certain input pattern on this data you will end up different with values for the same country, like Nepal, US. This makes it impossible, or at least much harder to extract information like how many customers from the United States have used your webshop, and how many from Nepal.<\/p>\n<p>Validation is done on a different approach, some of them are as follows:<\/p>\n<p><strong>Whitelist:<\/strong><br \/>\nIt only accepts the data from a finite list of known and trusted values.<\/p>\n<p><strong>Blacklist:<\/strong><br \/>\nReject data from a finite list of known untrusted values. This is very rarely a good idea.<\/p>\n<p><strong>Format Detection:<\/strong><br \/>\nTest to see if the data is of the correct format. Only accept it if it is.<\/p>\n<p><strong>Format Correction:<\/strong><br \/>\nAccept most any data, but remove or alter the dangerous pieces.<\/p>\n<p><strong>Examples:<\/strong><\/p>\n<p>WordPress provides a couple of functions to validate only some types of data. Developers usually define their own functions to validate data.<\/p>\n<p>WordPress provided is_email () function o check whether the email is valid or not.<\/p>\n<p>Code Example:<\/p>\n<pre class=\"lang:default decode:true\">if( is_email (\u201cexample@example.com\u201d)){\r\n\r\necho \u201cValid email\u201d;\r\n\r\n}\r\n\r\nelse{\r\n\r\necho \u201cInvalid Email\u201d;\r\n\r\n}<\/pre>\n<p><strong>2. Data Sanitization:<\/strong><\/p>\n<p>Sanitization is to ensure data safety and to prevent code injection. Sanitization means cleaning user input. Sanitization is a bit more liberal of an approach to accepting user data. It is a way of removing text, characters or codes from input that is not allowed. For example Widget title cannot have HTML tags in them. If you put HTML tags, then they are automatically removed before the title is saved.<\/p>\n<p><strong>Significance:<\/strong><\/p>\n<p>When data is included in some context, that data could be misinterpreted as a code for that environment. If the data contains malicious code, then using data without sanitizing it, means that code will be executed. The code doesn\u2019t even necessarily have to be malicious for it to cause undesired effects.<\/p>\n<p><strong>Examples:<\/strong><\/p>\n<p>There are various functions provided by WordPress to sanitize different data into different forms.<\/p>\n<p>Code Example:<\/p>\n<pre class=\"lang:default decode:true\">sanitize_email()\r\n\r\necho sanitize_email(\u201ctest example@example.com\u201d);\r\n\r\n\/\/output is \u201ctestexample@example.com\u201d\r\n\r\nAnother example is using\r\n\r\nSanitize_file_name()\r\n\r\necho sanitize_file_name(\u201c_profile pic- -1.png\u201d);\r\n\r\n\/\/Output is \u201cprofile-pic-1.png\u201d<\/pre>\n<p>Some of the other function used to sanitize data are:<\/p>\n<pre class=\"lang:default decode:true\">sanitize_file_name()\r\nsanitize_html_class()\r\nsanitize_key()\r\nsanitize_option() etc.<\/pre>\n<p><strong>Concluding,<\/strong><\/p>\n<p>Validation of data, on the other hand, should be done as soon as it\u2019s received and before it\u2019s written to the database. The idea is that \u2018invalid\u2019 data should either be auto-corrected, or be flagged to the data, and only valid data should be given to the database.<\/p>\n<p>That said \u2013 you may want to also perform validation when data is displayed too. In fact sometimes, \u2018validation\u2019 will also ensure the data is safe.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Data Validation and Sanitization with WordPress? 1. Data Validation: Validation is to ensure data correctness and usefulness. Untrusted data comes from many sources (users, third party sites, your own database etc.) and all of it needs to be validated both on input and output. Proper security is critical to keeping your site or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":264,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-262","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-informations"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Data Validation and Sanitization with WordPress &#171; Acme Themes Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Data Validation and Sanitization with WordPress &#171; Acme Themes Blog\" \/>\n<meta property=\"og:description\" content=\"What is Data Validation and Sanitization with WordPress? 1. Data Validation: Validation is to ensure data correctness and usefulness. Untrusted data comes from many sources (users, third party sites, your own database etc.) and all of it needs to be validated both on input and output. Proper security is critical to keeping your site or [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Acme Themes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/acmethemes\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-08T08:26:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-13T05:30:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Acme Themes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@acme_themes\" \/>\n<meta name=\"twitter:site\" content=\"@acme_themes\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Acme Themes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/\"},\"author\":{\"name\":\"Acme Themes\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#\/schema\/person\/a183debef87250cd8412b17cfd5c5a03\"},\"headline\":\"Data Validation and Sanitization with WordPress\",\"datePublished\":\"2016-08-08T08:26:32+00:00\",\"dateModified\":\"2020-02-13T05:30:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/\"},\"wordCount\":681,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png\",\"articleSection\":[\"Informations\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/\",\"name\":\"Data Validation and Sanitization with WordPress &#171; Acme Themes Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png\",\"datePublished\":\"2016-08-08T08:26:32+00:00\",\"dateModified\":\"2020-02-13T05:30:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#primaryimage\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png\",\"contentUrl\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.acmethemes.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Validation and Sanitization with WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#website\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/\",\"name\":\"Acme Themes Blog\",\"description\":\"WordPress Themes and Plugins, WordPress Tips and Tricks, News and Events\",\"publisher\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.acmethemes.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#organization\",\"name\":\"Acme Themes\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/12\/acmelogo.jpg\",\"contentUrl\":\"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/12\/acmelogo.jpg\",\"width\":3600,\"height\":1800,\"caption\":\"Acme Themes\"},\"image\":{\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/acmethemes\/\",\"https:\/\/x.com\/acme_themes\",\"https:\/\/www.instagram.com\/acmethemes\/\",\"https:\/\/www.linkedin.com\/in\/acmethemes\",\"https:\/\/myspace.com\/acmethemes\",\"https:\/\/www.pinterest.com\/acmethemes\/\",\"https:\/\/www.youtube.com\/c\/AcmeThemes\",\"https:\/\/en.wikipedia.org\/wiki\/User:AcmeThemes\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.acmethemes.com\/blog\/#\/schema\/person\/a183debef87250cd8412b17cfd5c5a03\",\"name\":\"Acme Themes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/648bc894290f2d11cf2348dd50014c0cf715a434282801b0a72dd7fa49f13d73?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/648bc894290f2d11cf2348dd50014c0cf715a434282801b0a72dd7fa49f13d73?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/648bc894290f2d11cf2348dd50014c0cf715a434282801b0a72dd7fa49f13d73?s=96&d=mm&r=g\",\"caption\":\"Acme Themes\"},\"url\":\"https:\/\/www.acmethemes.com\/blog\/author\/acmeblogadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Data Validation and Sanitization with WordPress &#171; Acme Themes Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Data Validation and Sanitization with WordPress &#171; Acme Themes Blog","og_description":"What is Data Validation and Sanitization with WordPress? 1. Data Validation: Validation is to ensure data correctness and usefulness. Untrusted data comes from many sources (users, third party sites, your own database etc.) and all of it needs to be validated both on input and output. Proper security is critical to keeping your site or [&hellip;]","og_url":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/","og_site_name":"Acme Themes Blog","article_publisher":"https:\/\/www.facebook.com\/acmethemes\/","article_published_time":"2016-08-08T08:26:32+00:00","article_modified_time":"2020-02-13T05:30:11+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png","type":"image\/png"}],"author":"Acme Themes","twitter_card":"summary_large_image","twitter_creator":"@acme_themes","twitter_site":"@acme_themes","twitter_misc":{"Written by":"Acme Themes","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/"},"author":{"name":"Acme Themes","@id":"https:\/\/www.acmethemes.com\/blog\/#\/schema\/person\/a183debef87250cd8412b17cfd5c5a03"},"headline":"Data Validation and Sanitization with WordPress","datePublished":"2016-08-08T08:26:32+00:00","dateModified":"2020-02-13T05:30:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/"},"wordCount":681,"commentCount":0,"publisher":{"@id":"https:\/\/www.acmethemes.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png","articleSection":["Informations"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/","url":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/","name":"Data Validation and Sanitization with WordPress &#171; Acme Themes Blog","isPartOf":{"@id":"https:\/\/www.acmethemes.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png","datePublished":"2016-08-08T08:26:32+00:00","dateModified":"2020-02-13T05:30:11+00:00","breadcrumb":{"@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#primaryimage","url":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png","contentUrl":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/08\/validation.png","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.acmethemes.com\/blog\/data-validation-and-sanitization-with-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.acmethemes.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Data Validation and Sanitization with WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.acmethemes.com\/blog\/#website","url":"https:\/\/www.acmethemes.com\/blog\/","name":"Acme Themes Blog","description":"WordPress Themes and Plugins, WordPress Tips and Tricks, News and Events","publisher":{"@id":"https:\/\/www.acmethemes.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.acmethemes.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.acmethemes.com\/blog\/#organization","name":"Acme Themes","url":"https:\/\/www.acmethemes.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.acmethemes.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/12\/acmelogo.jpg","contentUrl":"https:\/\/www.acmethemes.com\/blog\/wp-content\/uploads\/2016\/12\/acmelogo.jpg","width":3600,"height":1800,"caption":"Acme Themes"},"image":{"@id":"https:\/\/www.acmethemes.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/acmethemes\/","https:\/\/x.com\/acme_themes","https:\/\/www.instagram.com\/acmethemes\/","https:\/\/www.linkedin.com\/in\/acmethemes","https:\/\/myspace.com\/acmethemes","https:\/\/www.pinterest.com\/acmethemes\/","https:\/\/www.youtube.com\/c\/AcmeThemes","https:\/\/en.wikipedia.org\/wiki\/User:AcmeThemes"]},{"@type":"Person","@id":"https:\/\/www.acmethemes.com\/blog\/#\/schema\/person\/a183debef87250cd8412b17cfd5c5a03","name":"Acme Themes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/648bc894290f2d11cf2348dd50014c0cf715a434282801b0a72dd7fa49f13d73?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/648bc894290f2d11cf2348dd50014c0cf715a434282801b0a72dd7fa49f13d73?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/648bc894290f2d11cf2348dd50014c0cf715a434282801b0a72dd7fa49f13d73?s=96&d=mm&r=g","caption":"Acme Themes"},"url":"https:\/\/www.acmethemes.com\/blog\/author\/acmeblogadmin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/posts\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/comments?post=262"}],"version-history":[{"count":5,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":6698,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/posts\/262\/revisions\/6698"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/media\/264"}],"wp:attachment":[{"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.acmethemes.com\/blog\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}