// Remove WordPress version and theme information remove_action('wp_head', 'wp_generator'); // Remove WordPress version remove_action('wp_head', 'rsd_link'); // Remove Really Simple Discovery link remove_action('wp_head', 'wlwmanifest_link'); // Remove Windows Live Writer link remove_action('wp_head', 'wp_shortlink_wp_head'); // Remove shortlink remove_action('wp_head', 'adjacent_posts_rel_link_wp_head'); // Remove previous/next post links remove_action('wp_head', 'wp_oembed_add_discovery_links'); // Remove oEmbed discovery links // Change WordPress generator to something else function remove_wordpress_version() { return 'Custom Design'; } add_filter('the_generator', 'remove_wordpress_version'); // Hide WordPress theme name function hide_wp_theme_info() { return 'Custom Theme'; // Replace with your custom name } add_filter('stylesheet', 'hide_wp_theme_info'); add_filter('template', 'hide_wp_theme_info'); // Hide Plugins information function hide_plugins_info() { return false; // Disabling plugin info } add_filter('pre_option_active_plugins', 'hide_plugins_info'); // Disable WP-JSON (optional, if you want to block public API access) remove_action('wp_head', 'rest_output_link_wp_head'); remove_action('wp_head', 'wp_oembed_add_discovery_links'); ?>