BuddyPress Profile Search Extensions

In order to elevate the scope of specific aspects of your business website, it is advised to bring into play the most technically modern online features. Profile search is a search feature that can be made refreshingly intriguing with the addition of options like location based research. It will certainly ease the users in finding their specified queries and your business will reap the benefits in the longer term.

We customized BuddyPress Profile Search to extend the search options as per requirement of our client. The extension adds ajax based profile fields enabling site customers to search profiles. It also allows customers to find users near specific location using Google Geocode API. There was no documented hook available to extend the search however we extended profile search using core hook. We gave a template path to BuddyPress Profile Display Shortcode and used bp_get_template_stack to override the existing template. This hook runs a function that adds our customized template to BuddyPress template stack to include the functionality of finding customer with Geocode API. We also enqueued stylesheet for the template using standard BuddyPress stylesheet hook bpes_enqueue_styles.

Below is the code snippet:

User Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

    Get in Touch