Skip to content

Instantly share code, notes, and snippets.

@mio31337
Created February 13, 2022 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mio31337/6a72c39d94bfd91150f7c81c9e762379 to your computer and use it in GitHub Desktop.
Save mio31337/6a72c39d94bfd91150f7c81c9e762379 to your computer and use it in GitHub Desktop.
// //remove emoji support
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
// // Remove rss feed links
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );
// // remove wp-embed
add_action( 'wp_footer', function(){
wp_dequeue_script( 'wp-embed' );
});
add_action( 'wp_enqueue_scripts', function(){
// // remove block library css
wp_dequeue_style( 'wp-block-library' );
// // remove comment reply JS
wp_dequeue_script( 'comment-reply' );
} );
// for wp-config.php
// define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
// define('WP_POST_REVISIONS', false);
// define('WP_POST_REVISIONS', 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment