Support » Plugin: Category Order and Taxonomy Terms Order » [Feature Request] Add “taxonomy” value to “tto/update-order” action hook

  • onokazu

    (@onokazu)


    We would like to execute a certain function when the taxonomy order is updated. Thought it can be done via the “tto/update-order” action hook, but there is no way to get the taxonomy name of the updated terms.

    Can you add a “taxonomy” value to the AJAX POST request, and also include that value as the parameter for the “tto/update-order” action hook?

Viewing 1 replies (of 1 total)
  • Plugin Author tdgu

    (@tdgu)

    Hi,
    You can get all necessarily details from the $_POST superglobal:

    $taxonomy = isset($_POST['taxonomy']) ? sanitize_key($_POST['taxonomy']) : '';

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘[Feature Request] Add “taxonomy” value to “tto/update-order” action hook’ is closed to new replies.