LLMS_REST_Table_API_Keys::get_description_cell( LLMS_REST_API_Key $api_key )
Retrieve information for a the api key title/description
Parameters Parameters
- $api_key
-
(LLMS_REST_API_Key) (Required) API Key object.
Return Return
(string)
Source Source
File: libraries/lifterlms-rest/includes/admin/tables/class-llms-rest-table-api-keys.php
protected function get_description_cell( $api_key ) { $html = esc_html( $api_key->get( 'description' ) ); $edit_link = esc_url( $api_key->get_edit_link() ); $html = '<a href="' . $edit_link . '">' . $html . '</a>'; $html .= '<div class="llms-rest-actions">'; $html .= '<small class="llms-action-icon">ID: ' . $api_key->get( 'id' ) . '</small> | '; $html .= '<small><a class="llms-action-icon" href="' . $edit_link . '">' . __( 'View/Edit', 'lifterlms' ) . '</a></small> | '; $html .= '<small><a class="llms-action-icon danger" href="' . esc_url( $api_key->get_delete_link() ) . '">' . __( 'Revoke', 'lifterlms' ) . '</a></small>'; $html .= '</div>'; return $html; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |