My guess is, there is a filter causing change to the post content on api call. Could you check if the problem persists only in api or subscriber can see the content on normal page?
The Restrict Content by Role
plugin might be setting some rules that disallow subscriber role to view content in api calls.
I would start with disabling/enabling that plugin to see if that’s the cause. If not, I would do the same with other plugins one by one to verify if problem is caused by particular plugin.
If the problem persists outside of installed plugins, there must be custom code (custom theme or child theme), filtering post contents. If that’s the case I recommend looking through the list of filters to find ones that might be worth hooking into. If problem is in api only I would start with hooks prefixed with rest_
.
Related Posts:
- Get a list of all WordPress.org Plugins?
- What WordPress API function lists active/inactive plugins?
- Change Page’s Tag Using functions.php File
- How to build an API as a plugin
- How can I log a user out of WordPress before the page loads?
- How to authenticate custom API endpoint in WooCommerce [closed]
- 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?
- How to assign user a role if none is present when logging in
- How do you import members from another system to WordPress and update passwords so they’ll work?
- 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
- Multisite functions to communicate with individual site functions
- An Unexpected HTTP Error occurred during the API request
- Advanced Integration – WordPress + YOURLS
- Get Plugin Information from Multiple Sites Externally
- What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?
- Create or Update thousands of woocommerce products via PHP
- Looking for a solution – slightly convoluted problem
- Use WordPress with a custom OAuth2 provider
- Keep user’s privileges on accessing contents in JSON response
- wp_authenticate but not logged in
- Best way to hook a custom url?
- How can I add an options page for my class based plugin?
- Sending WP posts to external API
- CMB2 Repeatable Group & JSON API
- WordPress JSON API remove posts from a specific category
- How to access data in wordpress database externally using php
- How to save generated JWT token to cookies on login?
- how to oauth1 Wp plug-in revoke/reset.?
- How to modify WCMP Rest API response?
- wp_remote_get() returns 403 while file_get_contents() does not
- Limit post creation by role
- Why can’t I access my Intranet LDAPS with NADI?
- How to disable search as you type plugin suggestions?
- 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
- 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]
- Prevent plugin from intruding on wp-json posts api
- Getting a Page via its post-name using WP REST API v2 and Postman
- How to set category correctly for a custom post created by a remote API call?
- Integrating boxtal PHP library into a custom WordPress Plugin
- What am is missing? (API CORS)
- 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
- Possibility to login without password
- Sending customer an email with link to stripe to make payment
- Api external with wordpress
- How can ι create my own (custom) WordPress table/list?
- 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
- Push Contact form 7 variable to front end after submission
- How to store a secret for a plugin inside public_html
- create pages automatically and dynamically in wordPress
- 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?
- prevent anonymous access to WordPress site (non-admin site)
- 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
- wp_remote_post To external API multiple values with the same key
- How can I upload and password protect Javadocs in WordPress?
- 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
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- wp rest api (v2) filter not working (404 error – rest_no_route)
- API page return Header 500 but Work
- 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
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- Integrating a hosted app with wordpress using the API
- Plugin that uses AngularJS tutorial
- WordPress ReAuth =1 Loop with wpCAS
- Import tumblr post to wordpress blog
- Change All Login/Signup Links in Plugin
- Get value of a key from a Plugin Serialized array
- How to add/manage Followers (email subscribers) via 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
- Social login authentication via wordpress rest api
- WP Donation Form with custom payment API
- 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
- WordPress User Registration/ Sign Up -> Able to take Paid Certification Courses & keep track of Completed Certificates
- Error 400 Invalid “products[1].productId” Kinguin [closed]
- i need to resive data external api and show user
- WP Crowdfunding login redirect fails
- WP Rest-API response is unauthorized (React)
- Can I send a body using wp_remote_get()?