{"id":1079,"date":"2017-09-09T18:21:38","date_gmt":"2017-09-09T18:21:38","guid":{"rendered":"http:\/\/sgcustomwebsolutions.com\/blog\/?p=1079"},"modified":"2021-02-04T19:15:41","modified_gmt":"2021-02-04T19:15:41","slug":"stop-buddypress-from-clearing-wordpress-last-name-field","status":"publish","type":"post","link":"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/","title":{"rendered":"Stop BuddyPress Extended Profile From Clearing WP Last Name Field"},"content":{"rendered":"<p>Eagle-eyed website admins will notice an annoying problem that can occur when users update their BuddyPress Extended profiles &#8212; doing so may inadvertently clear out the Last Name field of their <em>WordPress<\/em> profiles. This can disrupt plugins that rely upon the WP last name field, such as my own <a href=\"https:\/\/wordpress.org\/plugins\/dynamic-user-directory\/\" target=\"_blank\" rel=\"noopener\">Dynamic User Directory plugin<\/a>. Users without a last name in their WordPress profile won&#8217;t show up in the user directory.<\/p>\n<p>What causes the BuddyPress Extended Profile to behave this way, and how do you fix the issue? First let&#8217;s take a look at the configuration in which it arises.<\/p>\n<h3><strong>The Preconditions<\/strong><\/h3>\n<p>1. BuddyPress Profile Syncing is turned on. This is the default setting.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1096\" src=\"http:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_Profile_BP_Syncing.jpg\" alt=\"BuddyPress Profile Syncing\" width=\"515\" height=\"203\" srcset=\"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_Profile_BP_Syncing.jpg 584w, https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_Profile_BP_Syncing-300x118.jpg 300w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>2. The user was already registered in WordPress before BuddyPress was installed. In this event, BuddyPress Extended Profile inserts <em>only<\/em> the first name into its required &#8220;Name&#8221; field, when it should actually contain both the first AND last name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1124\" src=\"http:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_BP_Profiles.jpg\" alt=\"WordPress and BuddyPress Profiles\" width=\"848\" height=\"333\" srcset=\"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_BP_Profiles.jpg 848w, https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_BP_Profiles-300x118.jpg 300w, https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_BP_Profiles-768x302.jpg 768w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/p>\n<h3><strong>The Problem Scenario<\/strong><\/h3>\n<p>1. The user updates some field on their extended profile, but does not update the required &#8220;Name&#8221; field to supply a last name.<br \/>\n2. Because profile syncing is turned on, BuddyPress attempts to update the WP profile&#8217;s first and last name fields with the contents of the BP Name field.<br \/>\n3. The first name field syncs fine, but the last name is missing on the BP profile. BP mistakenly updates the WP last name field with an empty string.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1102\" src=\"http:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_Profile_4.jpg\" alt=\"WordPress Profile Screenshot\" width=\"398\" height=\"328\" srcset=\"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_Profile_4.jpg 450w, https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/WP_Profile_4-300x247.jpg 300w\" sizes=\"auto, (max-width: 398px) 100vw, 398px\" \/><\/p>\n<h3><strong>The Solution<\/strong><\/h3>\n<p>To solve this issue I&#8217;ve written two little filters in PHP. The first filter will capture the WordPress last name field and stick it in a temporary user meta field behind the scenes before BuddyPress can clear it out. The second filter will restore the WordPress last name field after it has been cleared out by BuddyPress, but only if the BuddyPress name field does not have a last name when it is submitted. The code looks like this:<\/p>\n<pre class=\"lang:php decode:true \">\/**\r\n* Filter that captures the last name WP profile field before it can be cleared out &amp; sticks it in a temporary meta fld.\r\n* This action gets executed just before the BP profile sync.\r\n*\r\n**\/\r\nfunction action_xprofile_updated_profile_b4_sync() {\r\n\r\n     global $current_user;\r\n\r\n     $last_name = get_user_meta($current_user-&gt;id, 'last_name', true);\r\n\r\n     \/\/Stick the WP last name fld in a temp meta fld before BP can clear it\r\n     update_user_meta($current_user-&gt;id, 'last_name_tmp', $last_name );\r\n}\r\nadd_action('xprofile_updated_profile', 'action_xprofile_updated_profile_b4_sync', 1);\r\n\r\n\/**\r\n * Filter that grabs the last name from the temp meta fld and updates the WP last name fld after it is cleared out by BP\r\n * This action gets executed just after the BP profile sync via the priority of '9999'.\r\n *\r\n **\/\r\nfunction action_xprofile_updated_profile() {\r\n \r\n     global $current_user;\r\n \r\n     \/\/Get the WP last name that was stored in the temp meta fld prior to the profile sync \r\n     $last_name = get_user_meta($current_user-&gt;id, 'last_name_tmp', true);\r\n\r\n     \/\/Get the WP last name field now that BP has modified it \r\n     $updated_last_name = get_user_meta($current_user-&gt;id, 'last_name', true); \r\n\r\n     \/\/Remove the temp field\r\n     delete_user_meta($current_user-&gt;id, 'last_name_tmp'); \r\n     \r\n     \/\/Do nothing if BP updated the WP profile with a new last name\r\n     if(!empty($updated_last_name) &amp;&amp; $last_name !== $updated_last_name)\r\n         return;  \r\n     else \/\/Restore the WP last name fld if empty\r\n         update_user_meta( $current_user-&gt;id, 'last_name', $last_name ); \r\n}\r\nadd_action('xprofile_updated_profile', 'action_xprofile_updated_profile', 9999);<\/pre>\n<p>Simply copy the above code and paste it into your theme&#8217;s <a href=\"http:\/\/www.wpbeginner.com\/glossary\/functions-php\/\" target=\"_blank\" rel=\"noopener\">functions.php file<\/a>. Note carefully that this code only executes when users update their own BuddyPress Extended Profiles. It will <em>not<\/em> execute when an admin updates someone else&#8217;s BuddyPress profile. That said, these filters should effectively eliminate the nagging issue of the disappearing last name field in the WordPress profile.<\/p>\n<p><em>Did this post help you out? Please say thanks by clicking the Facebook &#8220;like&#8221; button below!<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What do you do when updating the BuddyPress Extended Profile clears the last name field of the user&#8217;s WordPress profile?<\/p>\n","protected":false},"author":3,"featured_media":1147,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[62,5,1,6],"tags":[63,68,64,67,69,66,65],"class_list":["post-1079","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-buddypress","category-php","category-uncategorized","category-wordpress","tag-buddypress","tag-buddypress-clears-wordpress-last-name","tag-buddypress-extended-profile","tag-update-buddypress-extended-profile","tag-update-buddypress-profile","tag-wordpress-last-name-field","tag-wordpress-user-profile"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Stop BuddyPress Extended Profile From Clearing WP Last Name Field - Solution Central<\/title>\n<meta name=\"description\" content=\"How to fix the BuddyPress Extended Profile issue in which it clears the WordPress Last Name profile field when the BP profile is updated.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Stop BuddyPress Extended Profile From Clearing WP Last Name Field - Solution Central\" \/>\n<meta property=\"og:description\" content=\"How to fix the BuddyPress Extended Profile issue in which it clears the WordPress Last Name profile field when the BP profile is updated.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/\" \/>\n<meta property=\"og:site_name\" content=\"Solution Central\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sgcustomwebsolutions?ref=hl\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-09T18:21:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-04T19:15:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/wordpress-buddypress-template-hierarchy-post-thumbnail.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"650\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sarah\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sarah\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/\",\"url\":\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/\",\"name\":\"Stop BuddyPress Extended Profile From Clearing WP Last Name Field - Solution Central\",\"isPartOf\":{\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/wordpress-buddypress-template-hierarchy-post-thumbnail.jpg\",\"datePublished\":\"2017-09-09T18:21:38+00:00\",\"dateModified\":\"2021-02-04T19:15:41+00:00\",\"author\":{\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/#\/schema\/person\/2e1ccd445918e421da29373adf45dbd5\"},\"description\":\"How to fix the BuddyPress Extended Profile issue in which it clears the WordPress Last Name profile field when the BP profile is updated.\",\"breadcrumb\":{\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#primaryimage\",\"url\":\"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/wordpress-buddypress-template-hierarchy-post-thumbnail.jpg\",\"contentUrl\":\"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/wordpress-buddypress-template-hierarchy-post-thumbnail.jpg\",\"width\":1200,\"height\":650},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sgcustomwebsolutions.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Stop BuddyPress Extended Profile From Clearing WP Last Name Field\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/#website\",\"url\":\"https:\/\/sgcustomwebsolutions.com\/blog\/\",\"name\":\"Solution Central\",\"description\":\"WordPress, PHP &amp; Graphic Design Tips\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sgcustomwebsolutions.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/#\/schema\/person\/2e1ccd445918e421da29373adf45dbd5\",\"name\":\"Sarah\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sgcustomwebsolutions.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2015\/10\/Very-Newest-Me-150x150.gif\",\"contentUrl\":\"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2015\/10\/Very-Newest-Me-150x150.gif\",\"caption\":\"Sarah\"},\"description\":\"Sarah holds a B.S. in Information Science and worked in the corporate world as a software engineer for 12 years before striking out as a freelance WordPress web developer in 2013. When she is not furiously coding away, she can be found outdoors exploring Florida's natural beauty with a camera in hand.\",\"sameAs\":[\"http:\/\/www.sgcustomwebsolutions.com\",\"https:\/\/www.facebook.com\/sgcustomwebsolutions?ref=hl\",\"www.linkedin.com\/in\/SarahGilesSGCWS\"],\"url\":\"https:\/\/sgcustomwebsolutions.com\/blog\/author\/sarah-giles\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Stop BuddyPress Extended Profile From Clearing WP Last Name Field - Solution Central","description":"How to fix the BuddyPress Extended Profile issue in which it clears the WordPress Last Name profile field when the BP profile is updated.","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:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/","og_locale":"en_US","og_type":"article","og_title":"Stop BuddyPress Extended Profile From Clearing WP Last Name Field - Solution Central","og_description":"How to fix the BuddyPress Extended Profile issue in which it clears the WordPress Last Name profile field when the BP profile is updated.","og_url":"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/","og_site_name":"Solution Central","article_author":"https:\/\/www.facebook.com\/sgcustomwebsolutions?ref=hl","article_published_time":"2017-09-09T18:21:38+00:00","article_modified_time":"2021-02-04T19:15:41+00:00","og_image":[{"width":1200,"height":650,"url":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/wordpress-buddypress-template-hierarchy-post-thumbnail.jpg","type":"image\/jpeg"}],"author":"Sarah","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sarah","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/","url":"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/","name":"Stop BuddyPress Extended Profile From Clearing WP Last Name Field - Solution Central","isPartOf":{"@id":"https:\/\/sgcustomwebsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#primaryimage"},"image":{"@id":"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#primaryimage"},"thumbnailUrl":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/wordpress-buddypress-template-hierarchy-post-thumbnail.jpg","datePublished":"2017-09-09T18:21:38+00:00","dateModified":"2021-02-04T19:15:41+00:00","author":{"@id":"https:\/\/sgcustomwebsolutions.com\/blog\/#\/schema\/person\/2e1ccd445918e421da29373adf45dbd5"},"description":"How to fix the BuddyPress Extended Profile issue in which it clears the WordPress Last Name profile field when the BP profile is updated.","breadcrumb":{"@id":"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#primaryimage","url":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/wordpress-buddypress-template-hierarchy-post-thumbnail.jpg","contentUrl":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2017\/09\/wordpress-buddypress-template-hierarchy-post-thumbnail.jpg","width":1200,"height":650},{"@type":"BreadcrumbList","@id":"https:\/\/sgcustomwebsolutions.com\/blog\/stop-buddypress-from-clearing-wordpress-last-name-field\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sgcustomwebsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Stop BuddyPress Extended Profile From Clearing WP Last Name Field"}]},{"@type":"WebSite","@id":"https:\/\/sgcustomwebsolutions.com\/blog\/#website","url":"https:\/\/sgcustomwebsolutions.com\/blog\/","name":"Solution Central","description":"WordPress, PHP &amp; Graphic Design Tips","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sgcustomwebsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sgcustomwebsolutions.com\/blog\/#\/schema\/person\/2e1ccd445918e421da29373adf45dbd5","name":"Sarah","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sgcustomwebsolutions.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2015\/10\/Very-Newest-Me-150x150.gif","contentUrl":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-content\/uploads\/2015\/10\/Very-Newest-Me-150x150.gif","caption":"Sarah"},"description":"Sarah holds a B.S. in Information Science and worked in the corporate world as a software engineer for 12 years before striking out as a freelance WordPress web developer in 2013. When she is not furiously coding away, she can be found outdoors exploring Florida's natural beauty with a camera in hand.","sameAs":["http:\/\/www.sgcustomwebsolutions.com","https:\/\/www.facebook.com\/sgcustomwebsolutions?ref=hl","www.linkedin.com\/in\/SarahGilesSGCWS"],"url":"https:\/\/sgcustomwebsolutions.com\/blog\/author\/sarah-giles\/"}]}},"_links":{"self":[{"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1079"}],"version-history":[{"count":67,"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1079\/revisions"}],"predecessor-version":[{"id":1266,"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1079\/revisions\/1266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/media\/1147"}],"wp:attachment":[{"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sgcustomwebsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}