{"id":18860864,"date":"2026-03-24T09:41:46","date_gmt":"2026-03-24T09:41:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-segmentation\/"},"modified":"2026-03-24T09:41:46","modified_gmt":"2026-03-24T09:41:46","slug":"custom-segmentation","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-segmentation\/","title":{"rendered":"Custom segmentation"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">First of all: congratulations on the quick replies on this wordpress.org forum. Love it!<br \/>I build shops for customers, we have a first one on Omnisend and i&#8217;m interested in ways to create segments.<br \/>This shop has 2 types of segment:<br \/><strong>B2B\/B2C:<\/strong> since WooCommerce offers by default a &#8220;company name&#8221; field, this could be the hook to create this segment, right? When the field is filled in, we can assume it&#8217;s a B2B buyer. How can we setup this automation?<br \/><br \/><strong>Language<\/strong>: that&#8217;s a difficult one since it is not a field in the checkout, although we could ask it. Or we can push the value of html lang=&#8221;en&#8221; to a hidden field via javascript. What could be the best approach here?<br \/><br \/><br \/><br \/><\/p>\n","protected":false},"template":"","class_list":["post-18860864","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18860864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18860864\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18860864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}