• jscamposcr

    (@jscamposcr)


    Hi Everyone!

    I’m looking for a way to call a script every time that WP goes through an autoupdate.

    Let me know of any ideas.

Viewing 1 replies (of 1 total)
  • WordPress Virus

    (@navneilnaicker)

    You can try this
    add_action('core_upgrade_preamble','my_function_to_delete_files');

    You can also try these

    add_action('upgrader_pre_install','my_function_to_delete_files');
    add_action('upgrader_post_install','my_function_to_delete_files');

Viewing 1 replies (of 1 total)

The topic ‘How to run script after WP update’ is closed to new replies.