• Hello!
    For plugins located on www.ads-software.com 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)

    (@sterndata)

    Volunteer Forum Moderator

    It is possible. But, for specific questions about what’s acceptable for the repo, see https://developer.www.ads-software.com/plugins/wordpress-org/detailed-plugin-guidelines/ and address any detailed questions to [email protected].

    Thread Starter vrpr

    (@vrpr)

    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.