Snippets

Joey Hernandez WordPress - Remove Certain WordPress Features

Created by Joey Hernandez
1
2
3
4
5
6
7
8
9
<?php
/**
 * remove generator and emoji head tags
 */
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.