Last active
August 22, 2016 14:58
-
-
Save deckerweb/65bf8c1c38f95cffcb9e2e2dda344345 to your computer and use it in GitHub Desktop.
Plugin: Genesis Shortcode UI, see: https://github.com/deckerweb/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_disable_shortcode_tag', 10, 1 ); | |
/** | |
* Plugin: Genesis Shortcode UI | |
* Snippet: Exclude Shortcodes from the UI | |
* | |
* @link https://gist.github.com/deckerweb/65bf8c1c38f95cffcb9e2e2dda344345 | |
* @link https://github.com/deckerweb/genesis-shortcode-ui | |
* | |
* @param {array} $genesis_shortcodes holds complete declaration of Shortcode UI params | |
* | |
* @return {array} Modified array | |
*/ | |
function ddw_gsui_disable_shortcode_tag( $genesis_shortcodes ) { | |
//$genesis_shortcodes[ 'sp_footer_copyright' ] = 0; | |
//$genesis_shortcodes[ 'sp_footer_childtheme_link' ] = 0; | |
//$genesis_shortcodes[ 'sp_footer_genesis_link' ] = 0; | |
$genesis_shortcodes[ 'sp_footer_studiopress_link' ] = 0; | |
$genesis_shortcodes[ 'sp_footer_wordpress_link' ] = 0; | |
//$genesis_shortcodes[ 'sp_footer_site_title' ] = 0; | |
//$genesis_shortcodes[ 'sp_footer_home_link' ] = 0; | |
//$genesis_shortcodes[ 'sp_footer_loginout_link' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_date' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_time' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_modified_date' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_modified_time' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_author' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_author_link' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_author_posts_link' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_comments' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_tags' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_categories' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_terms' ] = 0; | |
//$genesis_shortcodes[ 'sp_post_edit' ] = 0; | |
return $genesis_shortcodes; | |
} // end function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment