{"action":"created","issue":{"url":"https://api.github.com/repos/Themekraft/wc4bp-xprofile/issues/5","repository_url":"https://api.github.com/repos/Themekraft/wc4bp-xprofile","labels_url":"https://api.github.com/repos/Themekraft/wc4bp-xprofile/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Themekraft/wc4bp-xprofile/issues/5/comments","events_url":"https://api.github.com/repos/Themekraft/wc4bp-xprofile/issues/5/events","html_url":"https://github.com/Themekraft/wc4bp-xprofile/pull/5","id":139212079,"number":5,"title":"Allow customisation of field group headings shown on WooCommerce checkout pages","user":{"login":"tristanpenman","id":157346,"avatar_url":"https://avatars.githubusercontent.com/u/157346?v=3","gravatar_id":"","url":"https://api.github.com/users/tristanpenman","html_url":"https://github.com/tristanpenman","followers_url":"https://api.github.com/users/tristanpenman/followers","following_url":"https://api.github.com/users/tristanpenman/following{/other_user}","gists_url":"https://api.github.com/users/tristanpenman/gists{/gist_id}","starred_url":"https://api.github.com/users/tristanpenman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristanpenman/subscriptions","organizations_url":"https://api.github.com/users/tristanpenman/orgs","repos_url":"https://api.github.com/users/tristanpenman/repos","events_url":"https://api.github.com/users/tristanpenman/events{/privacy}","received_events_url":"https://api.github.com/users/tristanpenman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-08T08:31:22Z","updated_at":"2016-03-08T11:30:33Z","closed_at":"2016-03-08T11:29:48Z","pull_request":{"url":"https://api.github.com/repos/Themekraft/wc4bp-xprofile/pulls/5","html_url":"https://github.com/Themekraft/wc4bp-xprofile/pull/5","diff_url":"https://github.com/Themekraft/wc4bp-xprofile/pull/5.diff","patch_url":"https://github.com/Themekraft/wc4bp-xprofile/pull/5.patch"},"body":"I was working on a project where I needed to customise the field group headings on the checkout page. For now, I am using my own fork of the wc4bp-xprofile plugin, but wanted to include the changes in a PR so that others may benefit from the changes.\r\n\r\nThe PR adds support for two levels of customisation of the field group headings on the checkout page. The first is through a filter, allowing a plugin or theme to register a hook function that can alter the string before it is displayed. The new filter is called 'wc4bp_custom_checkout_field_group_heading'.\r\n\r\nThe second is through WordPress' built-in i18n functionality (i.e. the __ function). This is achieved using a default hook function for the 'wc4bp_custom_checkout_field_group_heading' filter. The translated string is used as the format for sprintf, so that the structure of the heading text can be changed via a translation file."},"comment":{"url":"https://api.github.com/repos/Themekraft/wc4bp-xprofile/issues/comments/193739303","html_url":"https://github.com/Themekraft/wc4bp-xprofile/pull/5#issuecomment-193739303","issue_url":"https://api.github.com/repos/Themekraft/wc4bp-xprofile/issues/5","id":193739303,"user":{"login":"svenl77","id":645567,"avatar_url":"https://avatars.githubusercontent.com/u/645567?v=3","gravatar_id":"","url":"https://api.github.com/users/svenl77","html_url":"https://github.com/svenl77","followers_url":"https://api.github.com/users/svenl77/followers","following_url":"https://api.github.com/users/svenl77/following{/other_user}","gists_url":"https://api.github.com/users/svenl77/gists{/gist_id}","starred_url":"https://api.github.com/users/svenl77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenl77/subscriptions","organizations_url":"https://api.github.com/users/svenl77/orgs","repos_url":"https://api.github.com/users/svenl77/repos","events_url":"https://api.github.com/users/svenl77/events{/privacy}","received_events_url":"https://api.github.com/users/svenl77/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T11:30:33Z","updated_at":"2016-03-08T11:30:33Z","body":"Thanks for your contribution. I will give it some testing and release a new version on WordPress.org"}}