Forum Replies Created
I found I have to declare it in my theme as noted here https://buddypress.trac.wordpress.org/ticket/6570:
bp_set_theme_compat_feature( 'legacy', array( 'name' => 'cover_image', 'settings' => array( 'components' => array( 'xprofile', 'groups' ), /* or you can only use array( 'xprofile' ) to restrict the cover image to users */ 'width' => 1170, 'height' => 225, 'callback' => 'swifter_theme_cover_image', /* function that will return to BuddyPress the css to attach to the theme_handle */ 'theme_handle' => 'swifter', ), ) );
It doesn’t work for me, perhaps because I’m using gravity forms for user registration.
Yes, I tested but it didn’t work because the new_member activity is created when the user is activated. So if( bp_get_user_last_activity( $user->ID ) == ” ) is never true when they log in.
Looks like I need to create new meta because the new_member activity is created when the account is activated.
Thanks for your help!
@shanebp I haven’t tested yet. There is an activity entry for ‘new_member’ that gets created. Not sure if that is when they first login or or first activate. Unfortunately, that entry might already be there when I check. Will take a look.
Sorry for the delay in responding. Thank you for the help. My custom actions are now registering on the admin screen.
I was hoping that there was a hook in either BP or WP that I could reassign the posts to but I can’t find anything.
Henry, did you find out an answer to your question? I tested that posts (in my case a few custom post types) do indeed get removed when a user removes their account. In my case, I would like to auto reassign to a different ID when a user deletes their account.