Welcome to The Codingdom Blog where I share my ideas on working with the technology related to PHP, and a lot of other handy stuff.

Advertisements
Panel 1

Blog

WP Users Endpoint to return all users

Has anyone run into the issue where not all the users are returned? At the moment only users who have contributed to content are returned in the WP user endpoint. Use the below hook to return all the users rathar than the users who have contributed to the content. add_filter( ‘rest_user_query’, ‘remove_has_published_posts_from_wp_api_user_query’, 10, 2 ); … Continue reading WP Users Endpoint to return all users

Panel 2 Placeholder
Panel 3 Placeholder
Panel 4 Placeholder