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', ), ) );In reply to: Hook for when a user first logs inIt doesn’t work for me, perhaps because I’m using gravity forms for user registration.
In reply to: Hook for when a user first logs inHenry,
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.
In reply to: Hook for when a user first logs inThanks guys!
In reply to: Hook for when a user first logs inLooks like I need to create new meta because the new_member activity is created when the account is activated.
Thanks for your help!
In reply to: Hook for when a user first logs in@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.
In reply to: Unregistered action on Activity admin screenHi Shane,
Sorry for the delay in responding. Thank you for the help. My custom actions are now registering on the admin screen.
In reply to: Housekeeping after delete-acount@henrywright
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.In reply to: Housekeeping after delete-acountHenry, 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.