Description
The wpdm_user_dashboard_icons filter allows you to add or modify icons displayed in the user dashboard.
Parameters
One parameter is passed to this hook.
Usage
<?php add_filter('wpdm_user_dashboard_icons', 'my_wpdm_dashboard_icons', 10, 1); ?>
Examples
<?php
add_filter('wpdm_user_dashboard_icons', 'my_wpdm_dashboard_icons', 10, 1);
function my_wpdm_dashboard_icons($default_icons) {
$default_icons['custom'] = [
'icon' => 'fa fa-star',
'label' => 'Custom'
];
return $default_icons;
}
?>