
WordPress.com untuk Blog : Solusi Praktis Konten Profesional Tanpa Ribet
Membangun blog atau website berbasis konten kini tidak selalu membutuhkan kemampuan coding. Berbagai platform website builder memungkinkan siapa saja
9 September, 2026

WordPress is one of the most popular platforms for building various types of websites, ranging from personal blogs to professional business websites. However, some technical information does not always need to be publicly displayed, including the WordPress version number being used.
WordPress version information can be found in several parts of a website, including its RSS feed. Although it may seem insignificant, this information can help others identify the CMS version running on a website. If that version contains unpatched security vulnerabilities, the information could potentially be exploited by malicious parties.
One simple step you can take is to remove WordPress version information from the RSS feed and website generator metadata. This process can be done using a small amount of PHP code without installing additional plugins.
WordPress can display version information through its generator metadata by default. This information is generally used to identify the software managing a website. In certain situations, it has little impact on the visitor experience, so website owners may consider hiding it.
The main reason for doing so is website security. Attackers sometimes collect technical information to identify the technologies and software versions being used. Once they obtain this information, they can search for known vulnerabilities in specific versions.
For example, if a website is still running an outdated version of WordPress with security vulnerabilities, attackers may attempt to exploit those weaknesses. Removing the version number from metadata can reduce the amount of information directly exposed, although it does not guarantee that the website will be immune to attacks.
Therefore, hiding the WordPress version should be part of a broader security strategy. Website owners still need to update WordPress, themes, and plugins regularly to maintain optimal website protection.

An RSS feed is a content distribution format that allows users or applications to receive article updates from a website. This feature is commonly used by RSS reader applications, news aggregator services, and various content automation systems.
In WordPress, version information can be added through the generator function. To remove this information, you can use the the_generator filter provided by WordPress.
Here are the steps you can follow.
First, log in to your WordPress dashboard and navigate to Appearance → Theme File Editor, if this feature is available. Next, locate the functions.php file in your active theme.
You can also access this file through the File Manager in your hosting control panel or by using SFTP. Before making any changes, create a backup of the file so you can restore the code if something goes wrong.
After opening the functions.php file, add the following code at the end of the file:
<?php
function remove_wp_version() {
return '';
}
add_filter('the_generator', 'remove_wp_version');
If the functions.php file already starts with the <?php tag, do not add the opening tag again. Simply insert the required function and filter.
This code creates a function named remove_wp_version() that returns an empty string. The the_generator filter then uses this function to remove WordPress generator information produced through this mechanism.
As a result, version information displayed through generator metadata can be removed, including from RSS feed output that uses this mechanism.
After adding the code, save your changes. Then, open your website's RSS feed URL, which typically follows this format: https://yourdomain.com/feed/.
Check the page source or XML response to ensure that the WordPress generator information is no longer displayed. You can also inspect your website's HTML source to see whether the generator metadata is still present.
If your website encounters an error after making the changes, restore the file from your backup or review the PHP syntax you added.
Editing the functions.php file is relatively straightforward, but it must still be done carefully. PHP syntax errors can cause website issues and may even make pages inaccessible.
It is recommended to use a child theme if you want to preserve custom code when the main theme is updated. If the code is added directly to the parent theme, those changes may be lost during a theme update.
Another alternative is to use a dedicated plugin for adding PHP code or create your own simple plugin. This approach helps separate security-related functionality from the active theme, allowing the code to continue working even if you change your website's design.
In addition, do not assume that removing WordPress version information is enough to secure your website. This step only reduces the exposure of certain information; it does not fix vulnerabilities within the software.
After removing WordPress version information from your RSS feed, there are several additional actions you should take to provide more comprehensive website protection.
First, make sure WordPress, themes, and plugins are always updated to supported versions. Updates typically include bug fixes, compatibility improvements, and security patches to address discovered vulnerabilities.

Second, remove unused themes and plugins. Unnecessary components can increase your website's attack surface, especially if they no longer receive security updates.
Third, use strong passwords and enable two-factor authentication for administrator accounts. You should also limit the number of accounts with administrator privileges to maintain better control over website management.
Fourth, back up your website regularly. Store copies of your files and database in a separate location to make recovery easier if your website experiences damage or an attack.
Finally, use HTTPS, apply appropriate file permissions, and monitor your website's security regularly. If possible, use a web application firewall service or a trusted security plugin to help detect suspicious activity.
Removing the WordPress version from an RSS feed is a simple way to reduce the technical information publicly displayed on your website. By using the the_generator filter in the functions.php file, you can remove WordPress generator metadata without installing additional plugins.
However, this step is not a standalone security solution. Make sure your website remains updated, uses secure configurations, has regular backups, and is monitored periodically.
By combining these measures, you can manage your WordPress website more securely while reducing the risks associated with outdated software.
What is an RSS feed in WordPress?
An RSS feed is a format that allows applications or users to receive website content updates automatically without having to visit individual pages.
Why should the WordPress version be removed from an RSS feed?
Removing version information can reduce the technical clues available to external parties. However, this action does not replace software updates or other security measures.
Is the PHP code safe to use?
The code uses a built-in WordPress filter to modify the generator output. Make sure the code is placed correctly and create a backup before editing the file.
Does removing the WordPress version make a website completely secure?
No. Your website still needs security updates, strong passwords, and proper server configurations.
Do I need a plugin to remove the WordPress version?
No. You can use PHP code in functions.php or a dedicated plugin to manage the code. Choose the method that best suits your technical skills and website requirements.
Can theme changes remove this code?
Yes. If the code is added directly to the parent theme, a theme update may overwrite your changes. Using a child theme or a dedicated plugin can help preserve the code.
Photo Source : Magnific