/** * Retrieve the post excerpt. * * @since 4.0.0 * @param array $args */ function cherry_get_the_post_excerpt($args) { ob_start(); cherry_the_post_excerpt($args); $excerpt = ob_get_contents(); ob_end_clean(); return apply_filters('cherry_get_the_post_excerpt', $excerpt); }
/** * Retrieve the post excerpt. * * @since 4.0.0 * @param array $args Set of arguments. * @return string The post excerpt. */ function cherry_get_the_post_excerpt($args) { ob_start(); cherry_the_post_excerpt($args); $excerpt = ob_get_contents(); ob_end_clean(); /** * Filters the post excerpt. * * @since 4.0.0 * @since 4.0.5 Added new parametr - $args. * @param string $excerpt The post excerpt. * @param array $args Arguments. */ return apply_filters('cherry_get_the_post_excerpt', $excerpt, $args); }