Filter
rpress_reports_export_cards
On this page
Filters the export cards shown in the Export tab of the reports screen.
Runs when the Export tab builds its cards. Each key is a card ID; each card is an array with title, description, icon (a dashicons name without the prefix), class (a batch exporter class), type and format. A card with a non-empty secondary key is printed in the Store Data group. The class must be a subclass of RPRESS_Batch_Export and be loadable through rpress_batch_export_class_include.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$cards | array | Array of card ID => card settings. |
Return value#
array. The card ID => settings array.
Example#
function my_export_cards( $cards ) {
$cards['orders']['title'] = esc_html__( 'Orders Export (CSV)', 'my-plugin' );
return $cards;
}
add_filter( 'rpress_reports_export_cards', 'my_export_cards', 10, 1 );
Source#
Applied in:
includes/admin/reporting/tabs/export.php(line 112), inrpress_reports_export_cards()
See also#
Was this page helpful?
