Displays a Coming Soon page to visitors while allowing logged-in users or anyone with a secret preview link to view the site.
<?php /** * Plugin Name: Coming Soon Mode * Description: Displays a Coming Soon page to visitors while allowing logged-in… Read more »
Force WordPress core system emails to use a specific from address & name.
<?php /** * Force WordPress core system emails to use a specific from address & name. */ add_filter( 'wp_mail_from', function(… Read more »
Disable WP Speculative Loading
<?php /** * Disable Speculative Loading in WordPress * * WordPress 6.5+ introduces speculative loading (like prerendering and prefetching) *… Read more »
Shortcode for Reddit User
function render_acf_gallery_shortcode() { if ( ! have_rows( 'gallery' ) ) { return '<p>No gallery items found.</p>'; } $thumbnails = '';… Read more »
Change "Howdy Admin" in Admin Bar
<?php /** * Customizes the WordPress admin bar greeting text. * * This function replaces the default "Howdy," text in… Read more »
This function hides all WordPress content from users who are not logged in. Visitors will see a custom message instead of any pages or posts, except for the login page.
<?php /** * Hide entire site unless logged in. * * Gist Keywords: wordpress, privacy * Author: Knol Aust *… Read more »