Hide option of Hide map in vendor setting

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 6 reply threads
  • Author
    Posts
    • #110039
      memoryengravers
      Participant

      Hello,

      I am trying to hide the Hide option of Hide map in vendor setting.. previously I found this:

      add_filter( 'wcfm_is_allow_store_map_location', '__return_false' );
      
      

      but this did not work.

    • #110063

      Hello,

      Yes using this you can hide location map from vendor settings. Can you tell where you add this code? Or you can share your site details then we can check your site.

      Thanks.

    • #110074
      memoryengravers
      Participant

      I added it to the functions.php of my child theme, where should it go ?

      • #110077

        Hello,

        For removing “location map” setting form vendor settings(PFA), yes add_filter( 'wcfm_is_allow_store_map_location', '__return_false' ); this code you have to write in your activate theme’s functions.php. you can share your site details then we can check your site.

        Thanks.

        Attachments:
        You must be logged in to view attached files.
    • #110151
      memoryengravers
      Participant

      Sorry, I communicated the wrong section. It is under the Vendor’s account, profile, I would like to remove these 3 options so the vendor can not change the settings:

      vendor page

    • #110182
      memoryengravers
      Participant

      trying to post image again
      image
      img link

    • #110221

      Hello,

      For hiding “Hide Map from Store” settings,

      add_filter( 'wcfm_marketplace_settings_fields_visibility', function( $fiels, $vendor_id ) {
      	unset($fiels['store_hide_map']);
      	return $fiels;
      }, 50,2 );

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      Thanks.

    • #110347
      memoryengravers
      Participant

      That worked perfectly, Thank you !!

Viewing 6 reply threads
  • The topic ‘Hide option of Hide map in vendor setting’ is closed to new replies.