The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

Functions

Disable WordPress Author Archives

Author archive pages can reveal usernames and are often unnecessary on single-author websites. Disabling them can improve security and reduce duplicate content. Steps Open your WordPress theme functions.php file. Add the code below at the end of the file. Save the file. Visit an author URL such as /author/admin/ to test. Done — author archive […]




Enqueue Scripts and styles with timestamp versioning in WordPress.

This code enqueues CSS and JavaScript files in WordPress while automatically using the file’s last modified timestamp (filemtime()) as the version number. Every time you update main.css or main.js, the timestamp changes, causing WordPress to generate a new URL version (e.g., main.css?ver=1748851234), which forces browsers to load the latest file instead of using a cached […]



Disable Self Pingbacks in WordPress

WordPress can create unnecessary self-pingbacks when you link to your own posts internally. Disabling them helps keep comments cleaner and reduces extra requests. Steps Open your WordPress theme functions.php file. Add the code below at the end of the file. Save the file. Publish or update a post to test it. Done — WordPress will […]


Disable Gutenberg Block Editor

If you prefer using the classic WordPress editor instead of the Gutenberg block editor, you can disable Gutenberg completely. Steps Open your WordPress theme functions.php file. Add the code below at the end of the file. Save the file. Refresh the post editor page. Done — WordPress will use the Classic Editor instead of Gutenberg. […]


Rename WordPress Login Page

Here’s a clean snippet you can add to your functions.php or use as a must-use plugin: Here’s what each part does: # Hook Purpose 1 init + add_rewrite_rule Registers /wacc-admin as a valid route pointing to wp-login.php internally 2 register_activation_hook Flushes rewrite rules once when activated so the slug works immediately 3 init + URI […]


Disable WordPress Heartbeat API on the Frontend

The Heartbeat API sends periodic AJAX requests that can increase server load. Disabling it on the frontend can improve performance on busy sites. Steps Open your WordPress theme functions.php file. Add the code below at the end of the file. Save the file. Clear any caches and test your website. Done — the Heartbeat API […]


Convert HEX Color to RGBA Format

This helper function converts a 6-digit HEX color code into an RGBA color value with predefined opacity. It is useful for generating transparent background colors dynamically in WordPress themes or plugins.


Proudly supported by