Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Easy Digital Downloads - replace the standard EDD menu icon with an icon from Dashicons
// remove the CSS for EDD's custom menu icon
remove_action( 'admin_head', 'edd_admin_downloads_icon' );
// filter EDD's post type args to use an icon from dashicons (
function sumobi_edd_modify_menu_icon( $download_args ) {
$download_args['menu_icon'] = 'dashicons-cart';
return $download_args;
add_filter( 'edd_download_post_type_args', 'sumobi_edd_modify_menu_icon' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment