get_site_transient( 'update_core' ), 'plugins' => get_site_transient( 'update_plugins' ), 'themes' => get_site_transient( 'update_themes' ), ); } // removes unnecessary keys from synced updates data function filter_update_keys( $args ) { $updates = $args[0]; if ( isset( $updates->no_update ) ) { unset( $updates->no_update ); } return $args; } function filter_upgrader_process_complete( $args ) { array_shift( $args ); return $args; } public function expand_updates( $args ) { if ( $args[0] ) { return $this->get_all_updates(); } return $args; } }