/** * Create a set of default wishlists for every new user. * * Remove this snippet if the wishlist plugin adds this feature natively. */ add_action( 'user_register', 'my_seed_default_wishlists', 20 ); function my_seed_default_wishlists( $user_id ) { // Bail if the wishlist plugin is not active. if ( ! class_exists( '\SaveToWishlist\Classes\Factories\Collections' ) ) { return; } // Edit these names. The FIRST one becomes the user's default wishlist. $wishlist_names = array( 'Wishlist', 'Backlog', 'Played' ); // Only ever seed a user once. if ( get_user_meta( $user_id, '_my_default_wishlists_seeded', true ) ) { return; } $collections = \SaveToWishlist\Classes\Factories\Collections::instance(); $first_id = 0; foreach ( $wishlist_names as $index => $name ) { $created = $collections->save_collection( array( 'user_id' => $user_id, 'name' => $name, 'description' => '', 'status' => 'publish', 'is_default' => 0 === $index ? 1 : 0, 'is_public' => 0, ) ); if ( 0 === $index && ! empty( $created->id ) ) { $first_id = (int) $created->id; } } // Make sure the first wishlist ends up as the default one. if ( $first_id ) { $collections->update_default_wishlist( $user_id ); $collections->update_default_wishlist( $user_id, 1, $first_id ); } update_user_meta( $user_id, '_my_default_wishlists_seeded', 1 ); }

Buddy Simulator 1984 – Review

Buddy Simulator 1984 created by Not a Sailor Studios is an immersive experience that simulates hanging out with a new best friend. Your new buddy learns and adapts its games to suit you and your interests to make it as fun as it can be. This is what it is on the surface, but deep down it’s a chilling and secret filled story with twists at every turn.

Read More