Last active
November 25, 2017 09:41
-
-
Save kamalinfo/c88f360183c4a1ddfae878a6876ba7dc 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
<?php | |
//for post type | |
add_action('init', 'theme_name_slider_init', 99 ); | |
function theme_name_slider_init(){ | |
if(isset( $GLOBALS['kc'])){ | |
global $kc; | |
$kc->add_content_type( 'slider' ); | |
} | |
} | |
//add custom icon set to kc | |
add_action('init', 'theme_name_custom_icon_set'); | |
function theme_name_custom_icon_set() { | |
if( function_exists( 'kc_add_icon' ) ) { | |
kc_add_icon( get_template_directory_uri().'/css/pe-icon-7-stroke.css' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment