This topic has 4 replies, 4 voices, and was last updated 10 years by Abe.

  • Author
  • #1343

    I have been able to set the visibility of the “Birthday” field on the extended profiles to private, but the ages of the members are still being calculated and shown on the members directory pages. Is there a way to remove or hide the ages, please?

    #1366
     SQadmin
    Keymaster

    Hi,
    To hide the age you should have something like this in sweetdate-child/functions.php:

    COPY CODE
    
    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() 
    {
        add_filter('kleo_bp_meta_fields','my_remove_age');
        
       /* For example uncomment the line bellow to disable matching on member profile */
        //remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');      
    }
    
    function my_remove_age($output) {
        //remove the Age form array
        unset($output['age']);
        
        return $output;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #14844
     Afrostein
    Participant

    Hello we have this same issue. We applied the code but it still shows the age of members in the members listing. Profile setting is already default: Only Me.

    Another way to fix this? Thanks.

    #14849
     Afrostein
    Participant

    Found our own resolution. Thanks.

    #15115
     Abe
    Keymaster

    Sharing might help other looking for the same solution

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

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

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

Log in with your credentials

Forgot your details?