Krzysiek Dróżdż
krzysiek@wpmagus.pl
WPmagus.pl
Krzysiek Dróżdż
WordPress sends a request to server.
Using cron.
Every 12 hours.
wp_version_check
wp_update_plugins
wp_update_themes
Functions in wp-includes/update.php
wp_version_check
wp_update_plugins
wp_update_themes
Notice: We can use filters: http_request_args
and http_response
and action: http_api_debug
The response is stored as transient, so it can be displayed later on
update_core
update_plugins
update_themes
Notice: So we can access this info using filters: pre_set_transient_{$transient}
and transient_{$transient}
An instance of one of these classes is constructed:
Notice: Available hooks: pre_auto_update
, upgrader_pre_download
, upgrader_process_complete
and more…
We can:
Any other ideas?
As always… Name conflicts.
Krzysiek Dróżdż
krzysiek@wpmagus.pl
WPmagus.pl