Home Forums Plugin Support WP User Frontend Pro How to save geo location with add meta?

This topic is: resolved

Tagged: 

This topic contains 7 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 9 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3741

    zellermaniac
    Participant
    Post count: 40

    I dont't know how to save geo adress, too. A Solution with no Problems with Updates.

    I need a Tip.

    #3748

    Tareq Hasan
    Keymaster
    Post count: 2831
    #3789

    zellermaniac
    Participant
    Post count: 40
    
    function wpufe_insert_address( $post_id ) {
        if ( isset( $_POST['find-address'] ) ) {
            update_post_meta( $post_id, 'shk-geolocation', $_POST['find-address'] );
        }
    }
      
    add_action( 'wpuf_add_post_after_insert', 'wpufe_insert_address' );
    add_action( 'wpuf_edit_post_after_update', 'wpufe_insert_address' );

    Slowly, I will provide the plugin concept.

    How can I display the address in the field Imput?

    #3792

    Tareq Hasan
    Keymaster
    Post count: 2831

    Sorry, you can't display on that address field.

    #3793

    zellermaniac
    Participant
    Post count: 40

    I want to change this function to save the user geolocation. Which hooks I need.

    Ok,

    I save the geolocation from the user.
    wp_usermeta
    meta_key:shk-geo

    user should not always input the same adress.

    Can I user the usermeta geo to replace the standard geo?

    #3794

    zellermaniac
    Participant
    Post count: 40

    Thx for your help all the time. Is there an donation button.

    #3795

    zellermaniac
    Participant
    Post count: 40

    When I edit other Field are with postmeta.
    Where can I edit in the plugin?

    #3796

    Tareq Hasan
    Keymaster
    Post count: 2831

    I am not sure what are you trying to achieve. The geo location is already saves in the user profile.

    About donation, try this.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘How to save geo location with add meta?’ is closed to new replies.