Created
November 28, 2019 15:39
-
-
Save kaskad88/a83d2548bc801288074737d3ee3439d4 to your computer and use it in GitHub Desktop.
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
/** | |
* Adding custom icon to icon control in Elementor | |
*/ | |
function jet_add_custom_icons_tab( $tabs = array() ) { | |
// Append new icons | |
$new_icons = array( | |
'account', | |
'airplane', | |
'wordpress', | |
); | |
$tabs['my-custom-icons'] = array( | |
'name' => 'my-custom-icons', | |
'label' => esc_html__( 'My Custom Icons', 'text-domain' ), | |
'labelIcon' => 'fas fa-user', | |
'prefix' => 'mdi-', | |
'displayPrefix' => 'mdi', | |
'url' => 'https://cdn.materialdesignicons.com/4.5.95/css/materialdesignicons.min.css', | |
'icons' => $new_icons, | |
'ver' => '1.0.0', | |
); | |
return $tabs; | |
} | |
add_filter( 'elementor/icons_manager/additional_tabs', 'jet_add_custom_icons_tab' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment