- 
      
 - 
        
Save jgorinjac/3c26ef3c77e10ba1d0f0f38f3c18bda9 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
vovafeldman revised this gist
Oct 19, 2016 . 1 changed file with 19 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,26 +1,26 @@ <?php // Disable emoji. remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); // Cleanup RPC. remove_action( 'wp_head', 'rsd_link' ); remove_action( 'wp_head', 'wlwmanifest_link' ); // Cleanup oembed. remove_action( 'wp_head', 'wp_oembed_add_discovery_links' ); remove_action( 'wp_head', 'wp_oembed_add_host_js' ); // Remove WP generator meta. remove_action( 'wp_head', 'wp_generator' ); // Disable XML RPC add_filter( 'xmlrpc_methods', function ( $methods ) { unset( $methods['pingback.ping'] ); return $methods; } ); // Disable RESTful API. add_filter('json_enabled', '__return_false'); add_filter('json_jsonp_enabled', '__return_false');  - 
        
vovafeldman revised this gist
Oct 15, 2016 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,4 +19,8 @@ unset( $methods['pingback.ping'] ); return $methods; } ); // Disable RESTful API. add_filter('json_enabled', '__return_false'); add_filter('json_jsonp_enabled', '__return_false');  - 
        
vovafeldman created this gist
Oct 13, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ <?php // Disable emoji. remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); // Cleanup RPC. remove_action( 'wp_head', 'rsd_link' ); remove_action( 'wp_head', 'wlwmanifest_link' ); // Cleanup oembed. remove_action( 'wp_head', 'wp_oembed_add_discovery_links' ); remove_action( 'wp_head', 'wp_oembed_add_host_js' ); // Remove WP generator meta. remove_action( 'wp_head', 'wp_generator' ); // Disable XML RPC add_filter( 'xmlrpc_methods', function ( $methods ) { unset( $methods['pingback.ping'] ); return $methods; } );