Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Help with new function


Jeff Sayre
Participant

@jeffsayre

@Devweb

In your get_user_name_display() function, you also need to declare $bp as global, otherwise it will not be able to pull the data from $bp->displayed_user->id.

So, do this:

function  get_user_name_display() {
global $wpdb, $bp;

Skip to toolbar