• Resolved qwe0001

    (@qwe0001)


    I have created a program that outputs a list of articles in a specified sort order to a JSON file.

    I would like this program to also work when the sorting is complete.

    What kind of after-hooks could I use to make this happen?

    Thank you for developing this very useful plug-in btw.

    OS: Linux – Apache

    WordPress: 6.7.2

    PHP: 8.3.10

    Plugin: Intuitive Custom Post Order 3.1.5.1

    私は、指定した並び順の記事一覧を、JSONファイルに出力するプログラムを作成しました。

    私は、このプログラムを、並び替えが完了した時にも動くようにしたいです。

    どのようなアフターフックを使えば、これが実現できますか?

    ところで大変使いやすいプラグインを開発して頂きありがとうございます。

Viewing 1 replies (of 1 total)
  • Thread Starter qwe0001

    (@qwe0001)

    Self resolved. The following after hooks achieved what I wanted to do

    add_action(‘wp_ajax_update-menu-order’, ‘generate_article_json’);

    add_action(‘wp_ajax_update-menu-order-tags’, ‘generate_article_json’);

Viewing 1 replies (of 1 total)

The topic ‘How do I run hooks when sorting is complete?’ is closed to new replies.