Title: Question API
Last modified: January 31, 2021

---

# Question API

 *  Resolved [barb55](https://wordpress.org/support/users/barb55/)
 * (@barb55)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/question-api/)
 * Hi,
 * I was just wondering whether Woocommerce is using the same Rest-API as WordPress,
   or if it is a different one. The reason is that I would like to clean up the 
   header links that WP has set, and I would like to add
 *     ```
       remove_action('wp_head', 'rest_output_link_wp_head');
       remove_action('wp_head', 'wp_oembed_add_discovery_links');
       remove_action('template_redirect', 'rest_output_link_header', 11, 0);
   
       function remove_json_api ()
       {
   
          remove_action('wp_head', 'rest_output_link_wp_head', 10);
          remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
   
          remove_action('rest_api_init', 'wp_oembed_register_route');
   
          add_filter('embed_oembed_discover', '__return_false');
   
          remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10);
   
          remove_action('wp_head', 'wp_oembed_add_discovery_links');
   
          remove_action('wp_head', 'wp_oembed_add_host_js');
   
          add_filter('rewrite_rules_array', 'disable_embeds_rewrites');
       }
       add_action('after_setup_theme', 'remove_json_api');
       ```
   
 * and I am wondering if this would affect Woocommerce in any way since I do need
   Woocommerce’s REST-API to work.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [5 years, 3 months ago](https://wordpress.org/support/topic/question-api/#post-13984039)
 * WooCommerce’s REST API is based on WordPress’s REST API, extending the core functionalities.
 * I am not sure if removing that code will affect WooCommerce. I would say, try
   and see how it goes! In the worst case, you can just remove the code and use 
   the REST API as usual.
 *  Plugin Support [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * (@abwaita)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/question-api/#post-14017478)
 * Hi [@barb55](https://wordpress.org/support/users/barb55/),
 * We’ve not heard back from you in a while, so I’m marking this thread as resolved.
   Hopefully, the above info was useful!
 * If you have further questions, please feel free to open a new topic.
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Question API’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/question-api/#post-14017478)
 * Status: resolved