This topic has 3 replies, 2 voices, and was last updated 11 years by wisinyyandel7.

  • Author
  • #35661
     wisinyyandel7
    Participant

    Hi @Abe, @Laura
    I was reading this: https://geomywp.com/support/forums/topic/more-privacy-less-address-details/
    I was trying to do what that guy did, but it didn’t work for me.
    Can you please help me? Thanks

    #35662
     wisinyyandel7
    Participant

    This is my child/function.php file…can you please tell me what I did wrong? Thanks

    COPY CODE
    
    <?php
    /**
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    
    add_action('after_setup_theme','kleo_remove_actions');
    /**
     * Override existing actions
     * Use these functions to replace/remove existing actions
     * @since Sweetdate 1.3
    */ 
    function kleo_remove_actions() 
    {
       /* For example uncomment the line bellow to disable matching on member profile */
        //remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');      
    }
    
    
    /**
     * Uncomment to change Looking for group with your own
     */
    /*
    add_filter('kleo_extra_tab1', 'custom_tab');
    function custom_tab()
    {
        return 'Base';
    }
    */
    
    /**
     * Uncomment to change default tab on member profile
     */
    /*
    add_filter('kleo_bp_profile_default_top_tab','my_default_tab');
    function my_default_tab() {
        return 'my-photos';
    }
    */
    
    add_filter('kleo_pmpro_level_restrictions', 'my_restriction_option');
    function my_restriction_option($settings) {
        $settings[] =     array(
            'title' => __('Restrict users from chatting with their friends','kleo_framework'),
            'front' => __('Chat with your friends','kleo_framework'),
            'name' => 'my_setting_alias'
        );
        
        return $settings;
    }
    
    
    
    function gmw_location_tab_address( $content ) {
    	
    	return '[gmw_member_location map_height="400px" map_width="400px" no_location="1" address_fields="city,zipcode,country" display_name="0"]';
    }
    add_filter( 'gmw_fl_user_location_tab_content', 'gmw_location_tab_address' );
    
    
    ?>
    
    #36668
     Abe
    Keymaster

    hi, that is related to GEO MY WP, please use their support since you will get an accurate answer

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #36836
     wisinyyandel7
    Participant

    OK thanks

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

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?