A
A
Aljo2021-09-13 09:53:24
PHP
Aljo, 2021-09-13 09:53:24

How to hang a function in Wordpress on an event in the admin panel depending on the action in the post request?

Hello!
I'm trying to work with WP.
In Modx, for example, when creating a plugin, you can select an event on which you can hang it.
And how to make similar functionality in WP?

Those. I now need to hang up a function on an event in the admin panel when saving the wpDataTables table. After saving, a POST request is made with the action wpdatatables_save_simple_table_data .

Is it possible to hang some kind of listener or are there any system events so that a function can be hung on them?

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question