Basically what you would want is to disable the RPWE widget whenever a request is made through the API. I haven’t tested it, but this might work:
add_action ('widgets_init', 'wpse332374_remove_rpwe', 0, 1000) // make sure this is the last action
function wpse332374_remove_rpwe() {
if (is_rest()) unregister_widget ('recent_post_widget_extended'); // or whatever the handle is
}
Note that is_rest()
is not a standard WP function. It’s a solution proposed for another question about selective functionality for API calls.
Related Posts:
- Keep user’s privileges on accessing contents in JSON response
- CMB2 Repeatable Group & JSON API
- WordPress JSON API remove posts from a specific category
- How to use JSON data from URL into table on my wordpress website
- WordPress output data to another website and pull data
- API page return Header 500 but Work
- Error 400 Invalid “products[1].productId” Kinguin [closed]
- WP Rest API: details of latest post including featured media url in one request?
- I Want to Get A Plugin Version Number Dynamically
- Building a custom REST API
- Get a list of all WordPress.org Plugins?
- WP JSON REST API (Ryan McCue) how to query posts with specific meta data with ‘AND’ relation?
- [Plugin WPML] : How to create a translation of a post using the WPML API?
- What WordPress API function lists active/inactive plugins?
- Change Page’s Tag Using functions.php File
- How to build an API as a plugin
- Get Latest Plugin Version from WP API
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- How do I retrieve a list of popular plugins using the WordPress.org Plugin API?
- WordPress wp-json API – Custom Post Type returns 403
- Using custom code, how can I fetch data from the WordPress plugin repo?
- Can’t use /wp-json/wp/v2/plugins API endpoint even as administrator
- Getting a Page via its post-name using WP REST API v2 and Postman
- Create WordPress posts from JSON array using plugin in admin
- Adding inside wp-plugin jQuery script that receives JSON-formatted data, generated by php-function inside this plugin
- How to set category correctly for a custom post created by a remote API call?
- Integrating boxtal PHP library into a custom WordPress Plugin
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- Custom API plugin to execute 3rd party API to retrieve data
- URL rewrite with external JSON query
- How to Include Fields in Query String When Making Request of WordPress.org Plugin API?
- Sending customer an email with link to stripe to make payment
- Api external with wordpress
- How to get a list of all the available plugins names
- How can ι create my own (custom) WordPress table/list?
- WP Rest API and json_decode()
- Call Ajax URL in Plugin
- Can i use init hook for API purpose?
- Including content from legacy app: via plugin or custom content?
- Why may one avoid Jetpack plugin? [closed]
- How to convert Currency from USD to other IP Based currency in Php function
- How do I display PHP file contents on front end of WordPress?
- Upload Javascript and json webpage to wordpress
- I’m receiving the following error using the below code: Uncaught Error: Cannot use object of type WP_REST_Response as array
- Push Contact form 7 variable to front end after submission
- How to add a PW Gift Card to a Woocommerce Order request API?
- Escape commas in REST API
- In a plugin, How to update a json file using ajax
- Ability to change homepage on WordPress using API
- Do i need to use a plugin for third party api integration?
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- How to use Datatable with Ajax when creating plugin on WordPress?
- is it possible to fetch data from a remote api while admin is writing a new post?
- One time call to external API in widget
- CRUD from WordPress to Business Central 365 through OData REST API
- wp_remote_post To external API multiple values with the same key
- How to get data from a private API and add it to wordpress pages
- Create API for registering user on wordpress site with 3rd party site
- Different function call depending on shortcode?
- Plugin json page
- How to find out programmatically whether any cache plugin is installed in the WordPress website?
- How to use information from the database in the front-end?
- Mailpoet Sign up on Custom registration form won’t work
- wp rest api (v2) filter not working (404 error – rest_no_route)
- WordPress PHP error getting posts from another wordpress blog
- In the WordPress API is there a way to set the width of the post/page container
- WP Rest API v2.0 user profile update issue
- Populate select option with JSON file
- what is the best way to create a premium plugin while also protecting your code
- WordPress, modular content, and syndication
- create web service for android app using wordpress website
- API Functions to Register and Show WordPress List Tables
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- Ajax specific template not loading in replacement of index.php
- Integrating a hosted app with wordpress using the API
- JSON Feed on my wordpress Blog
- Plugin that uses AngularJS tutorial
- Import tumblr post to wordpress blog
- Plugin Admin Page Ajax-Admin call returning 0, URL set correctly. Implemented localized scripts but did not fix it
- wordpress plugin JSON API search within specific category
- Get value of a key from a Plugin Serialized array
- Output pure JSON wordpress
- Undefined property: stdClass::$ AND Trying to get property ‘name’ of non-object Error in plugin
- How to add/manage Followers (email subscribers) via API?
- how to know that a wordpress plugin support using API?
- How to import data from another website using an API link?
- How can I send api calls from my plugin?
- Am having issues intergrating this api into my wordpress site, any help please?
- cURL External API request displays content above other content on page
- WP Donation Form with custom payment API
- Store large dataset in WordPress installation temporary
- How to write a plugin that “listens” every time, an edit occurs?
- Is it possible to create post in wordpress using postman?
- move setting data from wordpress api to codestar freamwork
- Stop the user if login from the cookies
- ImageMagick on wordpress 6.5.5 for Linux Alma 8 success but which no magick
- i need to resive data external api and show user
- Can I send a body using wp_remote_get()?
- Content being rendered as empty string in posts endpoint
- API to programmatically determine which wordpress plugins are out of date