', esc_url(get_bloginfo('pingback_url'))); } } add_action('wp_head', 'affiliate_eye_pingback_header'); if (!function_exists('BLOGS_GROWTH_content_reading_time')) : function BLOGS_GROWTH_content_reading_time() { $BLOGS_GROWTH_post_id = get_the_ID(); $BLOGS_GROWTH_content = get_the_content($BLOGS_GROWTH_post_id); $BLOGS_GROWTH_striped_tag = strip_tags($BLOGS_GROWTH_content); $BLOGS_GROWTH_word_count = str_word_count($BLOGS_GROWTH_striped_tag); $BLOGS_GROWTH_reading_minute = ceil($BLOGS_GROWTH_word_count / 200); $BLOGS_GROWTH_reading_second = ceil($BLOGS_GROWTH_word_count % 200 / (200 / 60)); $BLOGS_GROWTH_second_zero = $BLOGS_GROWTH_reading_second < 10 ? 0 : ''; $BLOGS_GROWTH_reading_time = sprintf('%s ' . __('Minute', 'blogs-growth'), $BLOGS_GROWTH_reading_minute, $BLOGS_GROWTH_second_zero, $BLOGS_GROWTH_reading_second); return $BLOGS_GROWTH_reading_time; } endif;