default cover photo problems
-
I’m trying to set a default cover photo for new users who haven’t yet set one. I’m using:
function bp_custom_filter_cover_image() { return 'http://www.sanguinenation.com/wp-content/uploads/2016/09/under-construction.jpg'; } add_filter( 'bp_attachments_pre_get_attachment', 'bp_custom_filter_cover_image' );
…but this doesn’t just set a cover photo for new users, it overwrites the cover photo for existing users. How can I add an if that’ll check if there’s already a custom cover photo, and if so not set the default one?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.