Last active
August 22, 2016 13:06
-
-
Save deckerweb/eeaaa76d469ff0205878f7d2bd6bf21f to your computer and use it in GitHub Desktop.
Plugin: Genesis Shortcode UI - Change a certain Shortcode logo in the UI // Plugin page: http://deckerweb.github.io/genesis-shortcode-ui
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 | |
/** Do NOT include the opening php tag */ | |
add_filter( 'gsui_filter_genesis_shortcodes_ui_args', 'ddw_gsui_change_shortcode_logo', 10, 1 ); | |
/** | |
* Plugin: Genesis Shortcode UI | |
* Snippet: Change a Shortcode logo in the UI | |
* | |
* @link https://gist.github.com/deckerweb/eeaaa76d469ff0205878f7d2bd6bf21f | |
* @link https://github.com/deckerweb/genesis-shortcode-ui | |
* @link https://developer.wordpress.org/resource/dashicons/ | |
* | |
* @param {array} $genesis_shortcodes holds complete declaration of Shortcode UI params | |
* | |
* @return {array} Modified array | |
*/ | |
function ddw_gsui_disable_shortcode_tag( $genesis_shortcodes ) { | |
/** Tweak logo/ icon */ | |
$genesis_shortcodes[ 'sp_post_comments' ][ 'listItemImage' ] = 'dashicons-admin-comments'; | |
/** Return modified output */ | |
return $genesis_shortcodes; | |
} // end function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment