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
- Get a list of all WordPress.org Plugins?
- [Plugin WPML] : How to create a translation of a post using the WPML API?
- 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?
- 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
- Send Data to WordPress from kiosk
- Does the WordPress API have Modal Dialogs
- An Unexpected HTTP Error occurred during the API request
- REST-API: extend media-endpoint
- How to check if WordPress is updating plugins?
- Custom routing for plugins
- Advanced Integration – WordPress + YOURLS
- Get Plugin Information from Multiple Sites Externally
- Where to access the available plugin/WordPress updates?
- Best way to hook a custom url?
- How do I create a custom add media button modal?
- How to access data in wordpress database externally using php
- How to display the “ratingValue” and “ratingCount” values generated by the KK Star Ratings plugin into my page’s recipe ld+json schema
- How to modify WCMP Rest API response?
- wordpress json api not working
- wp_remote_get() returns 403 while file_get_contents() does not
- Limit post creation by role
- Set plugin-values when creating post via REST-API
- WordPress does not show products when the value of post_parent is not 0
- WordPress api call using wp-ajax returns error 400
- WordPress stats API key
- Plugin is a widget, but I want to call it in the head, can I?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Socialite WP plugin, unable to obtain API keys from FB
- How to pass the API key to the client from the database? [closed]
- 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
- 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
- Sending customer an email with link to stripe to make payment
- Api external with wordpress
- 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
- 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
- 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?
- 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
- Plugin json page
- 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
- WP Rest API v2.0 user profile update issue
- what is the best way to create a premium plugin while also protecting your code
- 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
- Get value of a key from a Plugin Serialized array
- 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?
- 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
- How to write a plugin that “listens” every time, an edit occurs?
- 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
- Custom Gutenberg blocks not showing in WP editor