Plugin Generator

Home » Snippets » Plugin Generator
0

Created with:

Starter Plugin Generator

Visibility: 

public

Creator: Sami

Customize with WPTurbo AI
X

Add Snippet To Project

New Project
Add To Existing Project
				/*
 * Plugin Name: WPTurbo Starter Plugin
 * Plugin URI: https://wpturbo.dev
 * Description: A starter plugin template.
 * Version: 1.0.0
 * Author: WPTurbo
 * Author URI: https://wpturbo.dev
 * Text Domain: wpturbo
*/

/**
 * Remove WordPress Version Generator Tag.
 */
remove_action( 'wp_head', 'wp_generator' );


/**
 * Remove WooCommerce Version Generator Tag.
 */
remove_action( 'wp_head', 'wc_generator' );


/**
 * Remove X-Powered-By header.
 *
 * @return void
 */
function wpturbo_remove_x_powered_by() : void {
    if (function_exists('header_remove')) {
        header_remove('x-powered-by');
    }
}
add_action( 'wp', 'wpturbo_remove_x_powered_by' );
			

Register an account to save your snippets or go Pro to get more features.