Skip to content

Instantly share code, notes, and snippets.

@deckerweb
Last active August 22, 2016 13:06
Show Gist options
  • Save deckerweb/eeaaa76d469ff0205878f7d2bd6bf21f to your computer and use it in GitHub Desktop.
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
<?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