Last active
April 11, 2016 13:08
-
-
Save saqibsarwar/8e576646eab9323acde49788cb6edd29 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
if ( ! function_exists( 'inspiry_single_post_defaults' ) ) : | |
/** | |
* Set default values for single post settings | |
* | |
* @param WP_Customize_Manager $wp_customize | |
*/ | |
function inspiry_single_post_defaults( WP_Customize_Manager $wp_customize ) { | |
$single_post_settings_ids = array( | |
'inspiry_post_layout', | |
); | |
inspiry_initialize_defaults( $wp_customize, $single_post_settings_ids ); | |
} | |
add_action( 'customize_save_after', 'inspiry_single_post_defaults' ); | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment