Filter
rpress_api_row_actions
On this page
Filters the row action links shown under each user in the API Keys table.
Applied in the User column of the API keys list table. The array holds the Reissue and Revoke links keyed by reissue and revoke, with empty values already removed by array_filter(). Add, remove or reorder entries to change the links rendered by WP_List_Table::row_actions().
Parameters#
| Parameter | Type | Description |
|---|---|---|
$actions | array | Row action HTML links keyed by action slug. |
Return value#
array. The row action links to display, keyed by slug.
Example#
function my_api_key_row_actions( $actions ) {
$actions['docs'] = '<a href="' . esc_url( 'https://example.com/api-help' ) . '">' . esc_html__( 'API help', 'my-plugin' ) . '</a>';
return $actions;
}
add_filter( 'rpress_api_row_actions', 'my_api_key_row_actions' );
Source#
Applied in:
includes/admin/class-api-keys-table.php(line 133), inRPRESS_API_Keys_Table::column_user()
Was this page helpful?
