Home/APIs/ genesis_update_complete() – Upgrade the Genesis database after an update has completed.

You appear to be a bot. Output may be restricted

Description

Upgrade the Genesis database after an update has completed.

After an update has been completed, send a remote GET request to admin-ajax.php to trigger a silent upgrade.

Usage

$null = genesis_update_complete( $upgrader, $hook_extra );

Parameters

$upgrader

( object ) required – The upgrader object.

$hook_extra

( array ) required – Details about the upgrade process.

Returns

null

Source

File name: genesis/lib/functions/upgrade.phpLines:

1 to 30 of 30

functiongenesis_update_complete($upgrader,$hook_extra){if('update'!==$hook_extra['action']||'theme'!==$hook_extra['type']){return;}// Multiple themes are being updated but not Genesis.
if(isset($hook_extra['themes'])&&!in_array('genesis',$hook_extra['themes'],true)){return;}// One theme is being updated but not Genesis.
if(isset($hook_extra['theme'])&&'genesis'!==$hook_extra['theme']){return;}$silent_upgrade_url=add_query_arg(['action'=>'genesis-silent-upgrade',],admin_url('admin-ajax.php'));wp_remote_get($silent_upgrade_url,['timeout'=>0.01,'blocking'=>false,]);}