ss->getCapabilityList(); foreach ( $capabilities as $capability ) { $user->add_cap( $capability ); } } aioseo()->core->cache->delete( 'connect_active_user' ); } }