WP_Application_Passwords_List_Table::column_revoke() WordPress Method

This function is used to generate the revoke link for each application password.

WP_Application_Passwords_List_Table::column_revoke( array $item ) #

Handles the revoke column output.


Parameters

$item

(array)(Required)The current application password item.


Top ↑

Source

File: wp-admin/includes/class-wp-application-passwords-list-table.php

	public function column_revoke( $item ) {
		$name = 'revoke-application-password-' . $item['uuid'];
		printf(
			'<button type="button" name="%1$s" id="%1$s" class="button delete" aria-label="%2$s">%3$s</button>',
			esc_attr( $name ),
			/* translators: %s: the application password's given name. */
			esc_attr( sprintf( __( 'Revoke "%s"' ), $item['name'] ) ),
			__( 'Revoke' )
		);
	}


Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.