Skip to content

Instantly share code, notes, and snippets.

@saqibsarwar
Last active April 11, 2016 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saqibsarwar/8e576646eab9323acde49788cb6edd29 to your computer and use it in GitHub Desktop.
Save saqibsarwar/8e576646eab9323acde49788cb6edd29 to your computer and use it in GitHub Desktop.
<?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