Last active
August 29, 2015 14:04
-
-
Save amdrew/520e2a7440e24747c0f9 to your computer and use it in GitHub Desktop.
Easy Digital Downloads - replace the standard EDD menu icon with an icon from Dashicons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 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 (http://melchoyce.github.io/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