{"action":"closed","issue":{"url":"https://api.github.com/repos/weDevsOfficial/wp-user-frontend/issues/580","repository_url":"https://api.github.com/repos/weDevsOfficial/wp-user-frontend","labels_url":"https://api.github.com/repos/weDevsOfficial/wp-user-frontend/issues/580/labels{/name}","comments_url":"https://api.github.com/repos/weDevsOfficial/wp-user-frontend/issues/580/comments","events_url":"https://api.github.com/repos/weDevsOfficial/wp-user-frontend/issues/580/events","html_url":"https://github.com/weDevsOfficial/wp-user-frontend/issues/580","id":381294905,"node_id":"MDU6SXNzdWUzODEyOTQ5MDU=","number":580,"title":"My perfect Combo: WPUF & Geo My WP failing at some point...","user":{"login":"Anticosti","id":5446224,"node_id":"MDQ6VXNlcjU0NDYyMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5446224?v=4","gravatar_id":"","url":"https://api.github.com/users/Anticosti","html_url":"https://github.com/Anticosti","followers_url":"https://api.github.com/users/Anticosti/followers","following_url":"https://api.github.com/users/Anticosti/following{/other_user}","gists_url":"https://api.github.com/users/Anticosti/gists{/gist_id}","starred_url":"https://api.github.com/users/Anticosti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anticosti/subscriptions","organizations_url":"https://api.github.com/users/Anticosti/orgs","repos_url":"https://api.github.com/users/Anticosti/repos","events_url":"https://api.github.com/users/Anticosti/events{/privacy}","received_events_url":"https://api.github.com/users/Anticosti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-15T18:55:25Z","updated_at":"2018-12-02T15:34:23Z","closed_at":"2018-12-02T15:34:23Z","author_association":"NONE","body":"My perfect Combo: \r\n**WPUF** & **Geo My WP** are failing at some point...?\r\n\r\nIn Ref to:\r\nSupport Ticket **#112572**\r\n\r\nWould you have an idea why the user can’t update his address once entered from the Frontend?\r\nYes the user can enter a new address but… it won’t be updated in the proximity search and/or in it’s own listing.\r\n\r\n**The only way to get it updated for the user is:**\r\n**01.** He contact me;\r\n**02.** I enter the backend to edit it for him;\r\n**03.** Edit his address;\r\n**04**. Click on the “**Confirm Location**” button\r\n\r\n**A hint:**\r\nThese fields related/linked to Geo My WP, cannot be updated (once edited a first time) from Backend and also Frontend: phone, fax, email, website\r\n\r\n------------------------------------------------------------------------------\r\n\r\n`\r\nfunction gmw_update_location_via_wpuf( $post_id ) {\r\n\r\n// make sure post ID exists.\r\nif ( ! $post_id ) {\r\nreturn;\r\n}\r\n\r\n// verify updater function.\r\nif ( function_exists( ‘gmw_update_post_location’ ) ) {\r\n\r\n// change meta_field_name to the custom field of the address field.\r\n$address = get_post_meta( $post_id, ‘wpuf_company_address’, true );\r\n\r\n// run geocoder function\r\ngmw_update_post_location( $post_id, $address );\r\n\r\n// And to update your location metas would be:\r\n$metadata = array(\r\n‘phone’ => get_post_meta( $post_id, ‘phone’, true ),\r\n‘fax’ => get_post_meta( $post_id, ‘fax’, true ),\r\n’email’ => get_post_meta( $post_id, ’email’, true ),\r\n‘website’ => get_post_meta( $post_id, ‘website’, true ),\r\n);\r\n\r\ngmw_update_post_location_meta( $post_id, $metadata );\r\n}\r\n}\r\n// update data of new post\r\nadd_action(‘wpuf_add_post_after_insert’, ‘gmw_update_location_via_wpuf’, 10, 1 );\r\n// update data when post updated\r\nadd_action(‘wpuf_add_post_after_updated’, ‘gmw_update_location_via_wpuf’, 10, 1 );`\r\n\r\n------------------------------------------------------------------------------\r\n\r\nThank you so much for your feedbacks on this important connectivity for me."}}
{"actor":{"display_login":"Anticosti"}}