Hooking wp_update_plugins: is this an action or filter

I would like to hook the event wp_update_plugins. I’ve googled around for my following questions but I could not find the answers.

Is this event a filter or an action? So should I use add_filter() or add_action()?

Should my callback return anything? See my callback below? I don’t want to break any user functionality by the callback not returning the correct value and stopping default plugin updating from occurring.

public function my_callback() {
// do my code

// do I need to return anything here?
}

Read more here:: Hooking wp_update_plugins: is this an action or filter

Leave a Reply

Your email address will not be published. Required fields are marked *