O
O
OlegSedoy2018-05-30 06:07:15
WordPress
OlegSedoy, 2018-05-30 06:07:15

How to properly accept a GET request in WordPress?

There is a site on wp and a service that sends GET requests. Actually how and where to take them correctly? Requests need to be written to the database. I see only two options:

  1. Create a file at the root of the file and process everything there. There are no questions here.
  2. Create plugin. How to implement a GET request? Or rather, what URL should be specified in the service settings, if it is a plugin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Druzhaev, 2018-05-30
@OlegSedoy

ваш-сайт/?super-secret=some-token
then write a function on the init event - in the global $_GET you will catch
and according to the condition, do what you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question