GC_Application_Passwords_List_Table::column_revoke()
最后更新于:2021-11-26 09:15:43
GC_Application_Passwords_List_Table::column_revoke( array$item)Handles the revoke column output.
参数
- $item
-
(array) (Required) The current application password item.
源文件
文件: gc-admin/includes/class-gc-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' )
);
}