bre_link_to_bp_profile

The Bootstrap Responsive eCommerce bre link to bp profile function.

Description

bre_link_to_bp_profile( $actions, $user ); 

Parameters (2)

0. $actions
The actions.
1. $user
The user.

Usage

  1. if ( !function_exists( 'bre_link_to_bp_profile' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The actions. 
  5. $actions = null; 
  6.  
  7. // The user. 
  8. $user = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bre_link_to_bp_profile($actions, $user); 
  12.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function bre_link_to_bp_profile( $actions, $user ) { 
  2. if ( ! function_exists( 'bp_core_get_user_domain' ) ) return $actions; 
  3. $bp_profile_link = bp_core_get_user_domain( $user->ID ); 
  4. $actions['profile'] = "<a href='".$bp_profile_link."'>Profile</a>";//hook our link 
  5. return $actions;