Uses
Uses | Description |
---|---|
wp-admin/includes/class-language-pack-upgrader.php: Language_Pack_Upgrader::bulk_upgrade() | Bulk upgrade language packs. |
Upgrade a language pack.
(string|false) (Optional) Whether an update offer is available.
Default value: false
(array) (Optional) Other optional arguments, see Language_Pack_Upgrader::bulk_upgrade().
Default value: array()
(array|bool|WP_Error) The result of the upgrade, or a WP_Error object instead.
File: wp-admin/includes/class-language-pack-upgrader.php
public function upgrade( $update = false, $args = array() ) { if ( $update ) { $update = array( $update ); } $results = $this->bulk_upgrade( $update, $args ); if ( ! is_array( $results ) ) { return $results; } return $results[0]; }
Version | Description |
---|---|
3.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/language_pack_upgrader/upgrade