Plugin Customization

  1. Home
  2. Plugin Customization
  3. Cyber Filters
  4. cf donor redirect

cf donor redirect

 

Hook: cf_donor_redirect

Description: This hook is used to change the user profile url For example, if you are using some third party plugin like buddypress and you want visitors to donor’s profile page when they click on donor’s name showing in Project Donors element then you can change the donor’s profile url structure using this filter.

For example if users profile structure is liek ‘http:// site_url/member/user-name’ then you can set this structure by using this filter.

Arguments: $user_id

Return: Donor’s Profile url

Usage:

add_filter('cf_donor_redirect', 'cyber_callback');

function cyber_callback($user_id){

    return 'http"//'.home_url().'/members/'$user_id;

}
Was this article helpful to you? Yes No

How can we help?