Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How to update Change-Avatar Page after changing the avatar?

@modemlooper

Moderator

You would need to hook into the avatar save with something like xprofile_avatar_uploaded. Then from the cache docs wp_cache_post_change( $post_id )

function uncache_bp(){

	$page_array = get_option('bp-pages');

	wp_cache_post_change( $page_array['members'] );

}
add_action('xprofile_avatar_uploaded', 'uncache_bp');

Not sure this will work as not tested

Skip to toolbar