Created
September 6, 2021 07:34
-
-
Save kaskad88/1a55dbe405353482cd3a36473a65872b 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
add_filter( 'jet-engine/listing/grid/arrow-icons/options', function ( $options ) { | |
$options['my_icon'] = __( 'My icon', 'text-domain' ); | |
return $options; | |
} ); | |
add_filter( 'jet-engine/listing/grid/arrow-icon/my_icon', function ( $icon ) { | |
$icon = '<svg viewBox="0 0 179 179" xmlns="http://www.w3.org/2000/svg"><path transform="scale(0.1,-0.1) translate(0,-1536)" d="M909 141l102 102q19 19 19 45t-19 45l-307 307l307 307q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 | |
t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" /></svg>'; | |
return $icon; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment