W3cubDocs

/WordPress

Language_Pack_Upgrader_Skin::bulk_footer()

Displays the footer following the bulk update process.

Source

public function bulk_footer() {
	$this->decrement_update_count( 'translation' );

	$update_actions = array(
		'updates_page' => sprintf(
			'<a href="%s" target="_parent">%s</a>',
			self_admin_url( 'update-core.php' ),
			__( 'Go to WordPress Updates page' )
		),
	);

	/**
	 * Filters the list of action links available following a translations update.
	 *
	 * @since 3.7.0
	 *
	 * @param string[] $update_actions Array of translations update links.
	 */
	$update_actions = apply_filters( 'update_translations_complete_actions', $update_actions );

	if ( $update_actions && $this->display_footer_actions ) {
		$this->feedback( implode( ' | ', $update_actions ) );
	}
}

Hooks

apply_filters( ‘update_translations_complete_actions’, string[] $update_actions )

Filters the list of action links available following a translations update.

Changelog

Version Description
3.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/language_pack_upgrader_skin/bulk_footer