Initializes the upgrader.
This will set the relationship between the skin being used and this upgrader, and also add the generic strings to WP_Upgrader::$strings.
Additionally, it will schedule a weekly task to clean up the temporary backup directory.
public function init() {
$this->skin->set_upgrader( $this );
$this->generic_strings();
if ( ! wp_installing() ) {
$this->schedule_temp_backup_cleanup();
}
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_upgrader/init