{"id":12989,"date":"2024-11-22T10:32:50","date_gmt":"2024-11-22T09:32:50","guid":{"rendered":"https:\/\/longwatchstudio.com\/?p=12989"},"modified":"2024-11-22T10:32:52","modified_gmt":"2024-11-22T09:32:52","slug":"new-field-on-customers-my-account-page","status":"publish","type":"post","link":"https:\/\/longwatchstudio.com\/en\/new-field-on-customers-my-account-page\/","title":{"rendered":"Add a user field in the my account page"},"content":{"rendered":"\n<p><strong>Avec ce nouveau snippet, nous allons vous montrer comment ajouter un champ personnalis\u00e9 au profil des utilisateurs sur la page d\u00e9tails de leur compte. Dans cet exemple, nous allons ajouter le champ anniversaire. Cependant, vous pouvez ajouter n&rsquo;importe quel type de champ.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1|Information<\/h2>\n\n\n\n<p>Avant d&rsquo;utiliser ce snippet, assurez-vous d&rsquo;avoir install\u00e9 l&rsquo;extension Code Snippets (gratuite) sur votre site WordPress. Si ce n&rsquo;est pas le cas, vous pouvez la t\u00e9l\u00e9charger via le lien ci-dessous. Si vous n&rsquo;avez jamais ajout\u00e9 de fonctionnalit\u00e9 sp\u00e9cifique \u00e0 votre site WordPress, nous vous recommandons de commencer par lire notre guide d\u00e9di\u00e9 (lien ci-dessous).<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/longwatchstudio.com\/ajouter-une-fonctionnalite-specifique-a-votre-site-wordpress\/\">Guide &#8211; Ajouter une feature \u00e0 votre site WordPress<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">T\u00e9l\u00e9charger Code Snippets sur wordpress.org<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">2|Pr\u00e9requis<\/h2>\n\n\n\n<p>Voici la liste des extensions n\u00e9cessaires au bon fonctionnement de ce snippet. Assurez-vous de les installer avant d&rsquo;activer le snippet.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>WooCommerce<\/strong><\/td><td>N\u00e9cessaire pour avoir une page <strong>Mon Compte<\/strong> sur le site<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3|Snippet<\/h2>\n\n\n\n<p>Voici le snippet \u00e0 utiliser. Les commentaires \u00e0 l&rsquo;int\u00e9rieur du code vous guideront sur le fonctionnement de ce snippet.<\/p>\n\n\n\n<p>Le snippet doit fonctionner sur la partie <strong>frontend<\/strong> de votre site web. Assurez-vous de bien cocher la case \u00ab\u00a0Only run on site front-end\u00a0\u00bb avant d&rsquo;activer le snippet.<\/p>\n\n\n\n<pre title=\"Add Date of Birth Field\" class=\"wp-block-code\"><code lang=\"php\" class=\"language-php line-numbers\">\/** For the my account details page, we need 2 functions, one to display the new field and one to save the data *\/\n\\add_action('woocommerce_edit_account_form', 'myaccountDetailForm');\n\\add_action('woocommerce_save_account_details', 'myaccountDetailSave');\n\nfunction myaccountDetailForm()\n{\n    $userId = \\get_current_user_id();\n    $key    = \"billing_birth_date\";\n\t$label = __(\"Date of birth\", 'woocommerce');\n\t\/\/ If the user already filled this value, we need to read it to display it\n\t$value = \\esc_attr(\\get_user_meta($userId, $key, true));\n\n\techo \"&lt;p class='woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide'>\";\n\techo \"&lt;label for='{$key}'>{$label}&lt;\/label>\";\n\techo \"&lt;input type='date' class='woocommerce-Input woocommerce-Input--text input-text' name='{$key}' id='{$key}' value='{$value}' \/>&lt;\/p>\";\n\t\/\/ If you want, you can also add some custom description under your custom field\n\techo \"&lt;p class='woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide'>If you fill your date of birth, you'll earn a gift for your birthday&lt;\/p>\";\n\techo \"&lt;div class='clear'>&lt;\/div>\";\n}\n\nfunction myaccountDetailSave($userId)\n{\n    $key    = \"billing_birth_date\";\n\t\/\/ This part is very important. When reading a field entered by a user, you need to sanitize it to make sure it's safe\n\t$birthday = !empty($_POST[$key]) ? \\wc_clean($_POST[$key]): '';\n\tif( !empty($birthday) )\n\t{\n\t\t$date = \\date_create($birthday);\n\t\tif (empty($date)) {\n\t\t\t\\wc_add_notice(__(\"Invalid date format for date of birth\",'woocommerce'), 'error');\n\t\t\t$birthday = false;\n\t\t}\n\t\t$today = \\date_create();\n\t\tif ($date > $today) {\n\t\t\t\\wc_add_notice(__(\"You must enter your date of birth, not your next birthday\", 'woocommerce'), 'error');\n\t\t\t$birthday = false;\n\t\t}\n\t}\n\tif( $birthday !== false ) {\n\t\t\\update_user_meta($userId, \"billing_birth_date\", $birthday);\n\t} else {\n\t\t\\wc_add_notice(__(\"Invalid date format for date of birth\", 'woocommerce'), 'error');\n\t}\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>With this new snippet, we will show you how to add a custom field to users\u2019 profiles on their account details page. In this example, we will add the birthday field. However, you can add any type of field.<\/p>","protected":false},"author":2,"featured_media":12990,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[147],"tags":[136,148,135],"class_list":["post-12989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-snippet","tag-php-2","tag-user-account","tag-wordpress-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WordPress Snippet - Ajouter un champ dans la page Mon Compte<\/title>\n<meta name=\"description\" content=\"Gr\u00e2ce \u00e0 ce snippet, vous pourrez ajouter un champ personnalis\u00e9 \u00e0 la page Mon Compte de vos clients WooCommerce\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/longwatchstudio.com\/en\/new-field-on-customers-my-account-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Snippet - Ajouter un champ dans la page Mon Compte\" \/>\n<meta property=\"og:description\" content=\"Gr\u00e2ce \u00e0 ce snippet, vous pourrez ajouter un champ personnalis\u00e9 \u00e0 la page Mon Compte de vos clients WooCommerce\" \/>\n<meta property=\"og:url\" content=\"https:\/\/longwatchstudio.com\/en\/new-field-on-customers-my-account-page\/\" \/>\n<meta property=\"og:site_name\" content=\"Long Watch Studio\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/LongWatchStudio\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-22T09:32:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-22T09:32:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Long Watch Studio\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Long Watch Studio\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/\"},\"author\":{\"name\":\"Long Watch Studio\",\"@id\":\"https:\/\/longwatchstudio.com\/#\/schema\/person\/4992b6e2dc93355fd430c411b01fa4f2\"},\"headline\":\"Ajouter un champ utilisateur dans la page mon compte\",\"datePublished\":\"2024-11-22T09:32:50+00:00\",\"dateModified\":\"2024-11-22T09:32:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/\"},\"wordCount\":215,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/longwatchstudio.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg\",\"keywords\":[\"#PHP\",\"#User Account\",\"#WordPress\"],\"articleSection\":[\"Code Snippet\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/\",\"url\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/\",\"name\":\"WordPress Snippet - Ajouter un champ dans la page Mon Compte\",\"isPartOf\":{\"@id\":\"https:\/\/longwatchstudio.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg\",\"datePublished\":\"2024-11-22T09:32:50+00:00\",\"dateModified\":\"2024-11-22T09:32:52+00:00\",\"description\":\"Gr\u00e2ce \u00e0 ce snippet, vous pourrez ajouter un champ personnalis\u00e9 \u00e0 la page Mon Compte de vos clients WooCommerce\",\"breadcrumb\":{\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#primaryimage\",\"url\":\"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg\",\"contentUrl\":\"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg\",\"width\":1920,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/longwatchstudio.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ajouter un champ utilisateur dans la page mon compte\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/longwatchstudio.com\/#website\",\"url\":\"https:\/\/longwatchstudio.com\/\",\"name\":\"Long Watch Studio\",\"description\":\"Vous apporte le meilleur du Web\",\"publisher\":{\"@id\":\"https:\/\/longwatchstudio.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/longwatchstudio.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/longwatchstudio.com\/#organization\",\"name\":\"Long Watch Studio\",\"url\":\"https:\/\/longwatchstudio.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/longwatchstudio.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2016\/11\/logo-site.png\",\"contentUrl\":\"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2016\/11\/logo-site.png\",\"width\":223,\"height\":50,\"caption\":\"Long Watch Studio\"},\"image\":{\"@id\":\"https:\/\/longwatchstudio.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/LongWatchStudio\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/longwatchstudio.com\/#\/schema\/person\/4992b6e2dc93355fd430c411b01fa4f2\",\"name\":\"Long Watch Studio\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/c0f7871feba98114b735e6ab4f8e92974b62e01ed47c0e3b7953c52f67ab009e?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c0f7871feba98114b735e6ab4f8e92974b62e01ed47c0e3b7953c52f67ab009e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c0f7871feba98114b735e6ab4f8e92974b62e01ed47c0e3b7953c52f67ab009e?s=96&d=mm&r=g\",\"caption\":\"Long Watch Studio\"},\"sameAs\":[\"http:\/\/longwatchstudio.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress Snippet \u2013 Add a field in My Account page","description":"With this snippet you will be able to add a custom field to your WooCommerce customers' My Account page","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:\/\/longwatchstudio.com\/en\/new-field-on-customers-my-account-page\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Snippet - Ajouter un champ dans la page Mon Compte","og_description":"Gr\u00e2ce \u00e0 ce snippet, vous pourrez ajouter un champ personnalis\u00e9 \u00e0 la page Mon Compte de vos clients WooCommerce","og_url":"https:\/\/longwatchstudio.com\/en\/new-field-on-customers-my-account-page\/","og_site_name":"Long Watch Studio","article_publisher":"https:\/\/www.facebook.com\/LongWatchStudio\/","article_published_time":"2024-11-22T09:32:50+00:00","article_modified_time":"2024-11-22T09:32:52+00:00","og_image":[{"width":1920,"height":500,"url":"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg","type":"image\/jpeg"}],"author":"Long Watch Studio","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Long Watch Studio","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#article","isPartOf":{"@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/"},"author":{"name":"Long Watch Studio","@id":"https:\/\/longwatchstudio.com\/#\/schema\/person\/4992b6e2dc93355fd430c411b01fa4f2"},"headline":"Ajouter un champ utilisateur dans la page mon compte","datePublished":"2024-11-22T09:32:50+00:00","dateModified":"2024-11-22T09:32:52+00:00","mainEntityOfPage":{"@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/"},"wordCount":215,"commentCount":0,"publisher":{"@id":"https:\/\/longwatchstudio.com\/#organization"},"image":{"@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#primaryimage"},"thumbnailUrl":"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg","keywords":["#PHP","#User Account","#WordPress"],"articleSection":["Code Snippet"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/","url":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/","name":"WordPress Snippet \u2013 Add a field in My Account page","isPartOf":{"@id":"https:\/\/longwatchstudio.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#primaryimage"},"image":{"@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#primaryimage"},"thumbnailUrl":"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg","datePublished":"2024-11-22T09:32:50+00:00","dateModified":"2024-11-22T09:32:52+00:00","description":"With this snippet you will be able to add a custom field to your WooCommerce customers' My Account page","breadcrumb":{"@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#primaryimage","url":"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg","contentUrl":"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2024\/10\/ban-snippet.jpg","width":1920,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/longwatchstudio.com\/new-field-on-customers-my-account-page\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/longwatchstudio.com\/"},{"@type":"ListItem","position":2,"name":"Ajouter un champ utilisateur dans la page mon compte"}]},{"@type":"WebSite","@id":"https:\/\/longwatchstudio.com\/#website","url":"https:\/\/longwatchstudio.com\/","name":"Long Watch Studio","description":"Brings you the best of the Web","publisher":{"@id":"https:\/\/longwatchstudio.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/longwatchstudio.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/longwatchstudio.com\/#organization","name":"Long Watch Studio","url":"https:\/\/longwatchstudio.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/longwatchstudio.com\/#\/schema\/logo\/image\/","url":"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2016\/11\/logo-site.png","contentUrl":"https:\/\/longwatchstudio.com\/wp-content\/uploads\/2016\/11\/logo-site.png","width":223,"height":50,"caption":"Long Watch Studio"},"image":{"@id":"https:\/\/longwatchstudio.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/LongWatchStudio\/"]},{"@type":"Person","@id":"https:\/\/longwatchstudio.com\/#\/schema\/person\/4992b6e2dc93355fd430c411b01fa4f2","name":"Long Watch Studio","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c0f7871feba98114b735e6ab4f8e92974b62e01ed47c0e3b7953c52f67ab009e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c0f7871feba98114b735e6ab4f8e92974b62e01ed47c0e3b7953c52f67ab009e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c0f7871feba98114b735e6ab4f8e92974b62e01ed47c0e3b7953c52f67ab009e?s=96&d=mm&r=g","caption":"Long Watch Studio"},"sameAs":["http:\/\/longwatchstudio.com"]}]}},"_links":{"self":[{"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/posts\/12989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/comments?post=12989"}],"version-history":[{"count":5,"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/posts\/12989\/revisions"}],"predecessor-version":[{"id":13012,"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/posts\/12989\/revisions\/13012"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/media\/12990"}],"wp:attachment":[{"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/media?parent=12989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/categories?post=12989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/longwatchstudio.com\/en\/wp-json\/wp\/v2\/tags?post=12989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}