I need to rewrite the path, Rest Api WordPress calls to the database in such a way that the standard wp-json / wp-v2 / users appeal would not refer to the standard table where all WP users (admin and those who edit the site content) are contained, but to my ExUser contained in the same db. Should I rewrite the standard endpoint class-wp-rest-users-controller.php. Or inherit from it, tell me how to do it right, since I have very little experience with WordPress RestApi.

  • You can use the global variable global $ wpdb; which allows you to directly communicate with the database - Gg jusy

0