• Resolved bing4

    (@bing4)


    Hello.

    How can we make additional forms with another location center for maps via functions.php ?

    Now we use

    function wpf_wpforms_geolocation_map_default_location() {

    return [
            'lat' => lat,
            'lng' => lng,
        ];

    }
    add_filter( ‘wpforms_geolocation_map_default_location’, ‘wpf_wpforms_geolocation_map_default_location’, 10 );

    /**

    function wpf_wpforms_geolocation_map_zoom( $zoom, $context ) {

       // This will change the zoom level while viewing the entry. 
       if ( 'entry' === $context ) {
           return 10;
       }
    
       // This will change the zoom level on the map that displays on the form above/under the Address field.
       if ( 'field' === $context ) {
           return 15;
       }
    
       return $zoom;

    }
    add_filter( ‘wpforms_geolocation_map_zoom’, ‘wpf_wpforms_geolocation_map_zoom’, 10, 2 );

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @bing4,

    Thanks for reaching out!

    The Geolocation addon is a feature available only with a Pro license level or higher. With this, it seems that you are using the paid version of WPForms.

    If you have an active license subscription with us, could you please submit a support ticket through the WPForms account dashboard when you have a chance? From there, our support team will be able to take a closer look at your request.

    I apologize that we’re not able to respond to paid version questions here in the ww.wp.xz.cn support forums for the free version, but I really appreciate your help!

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Additional forms with another location center for map’ is closed to new replies.