Skip to content

Commit

Permalink
Update functions.php
Browse files Browse the repository at this point in the history
Removed wp-json stuff so spiders don't index them. Anyway there's unauthorized
  • Loading branch information
Warface authored Aug 23, 2024
1 parent e662014 commit 95a6e14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ function remove_thumbnail_dimensions( $html ){
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
remove_action('wp_head', 'rel_canonical');
remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);
//remove wp-json
remove_action('wp_head', 'rest_output_link_wp_head', 10);
remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
remove_action('template_redirect', 'rest_output_link_header', 11, 0);

// Add Filters

Expand Down

0 comments on commit 95a6e14

Please sign in to comment.