remove_section( 'blogger_hub_theme_color_option' ); $wp_customize->remove_control( 'blogger_hub_metafields_date' ); $wp_customize->remove_setting( 'blogger_hub_metafields_date' ); $wp_customize->remove_control( 'blogger_hub_metafields_author' ); $wp_customize->remove_setting( 'blogger_hub_metafields_author' ); $wp_customize->remove_control( 'blogger_hub_metafields_comment' ); $wp_customize->remove_setting( 'blogger_hub_metafields_comment' ); } add_action( 'customize_register', 'blogger_base_customize_register', 11 ); function blogger_base_remove_parent_function() { remove_action( 'admin_notices', 'blogger_hub_activation_notice' ); remove_action( 'admin_menu', 'blogger_hub_gettingstarted' ); } add_action( 'init', 'blogger_base_remove_parent_function'); /* Excerpt Limit Begin */ function blogger_base_string_limit_words($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); return implode(' ', $words); }