Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Member/User Specific Items using functions.php

@shanebp

Moderator

You’re trying to do this in a file in theme/members… ?

Try this:
`
if ( bp_displayed_user_id() == 28 ) {
?>

Content only to display on member/user ID 28’s profile page.

<?php
}
`

btw
-bp_is_user_profile() does not accept variables, it just checks to see if the viewer is on a profile page and returns a boolean.
– add_action doesn’t work like that – read https://codex.wordpress.org/Function_Reference/add_action

Skip to toolbar