Title: Rest API
Last modified: March 28, 2022

---

# Rest API

 *  [vrpr](https://wordpress.org/support/users/vrpr/)
 * (@vrpr)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/rest-api-130/)
 * Hello!
    For plugins located on wordpress.org is there a requirement that access
   to the database should be only using the Rest Api? Is it possible to use direct
   database access?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [4 years, 2 months ago](https://wordpress.org/support/topic/rest-api-130/#post-15454592)
 * It is possible. But, for specific questions about what’s acceptable for the repo,
   see [https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/](https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/)
   and address any detailed questions to [plugins@wordpress.org](https://wordpress.org/support/topic/rest-api-130/plugins@wordpress.org?output_format=md).
 *  Thread Starter [vrpr](https://wordpress.org/support/users/vrpr/)
 * (@vrpr)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/rest-api-130/#post-15502983)
 * I created a simple live search plugin.
    The plugin creates one table in which
   it data is saved and the plugin receives data from standard WordPress tables 
   when it make search. I used direct database access. But I was reading that there
   is a requirement that access to the database should be only using the Rest API.
   How I understand – I must write specific route (register_rest_route) and use 
   WP_Query in function what will get data from data base. I’m under the impression
   that WP_Query can only be used to work with standard WordPress tables. I couldn’t
   figure out how to use WP_Query to get or store data in my WordPress table created
   specifically for my plugin. Is this true or am I just not knowing enough WP_Query?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Rest API’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 2 participants
 * Last reply from: [vrpr](https://wordpress.org/support/users/vrpr/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/rest-api-130/#post-15502983)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
