Created
September 28, 2020 00:10
-
-
Save MrVibe/19d3ad59267a7f4484feab0d66cc7527 to your computer and use it in GitHub Desktop.
Custom Component icons in WPLMS
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
add_filter('wplms_get_element_icon',function($icon,$component_name){ | |
//print_r($component_name); //find out component names | |
if($component_name == 'jitsi'){ | |
return '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>'; | |
} | |
return $icon; | |
},10,2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment