Exemplo n.º 1
0
/**
 * Retrieve the post content.
 *
 * @since 4.0.0
 * @param array $args
 */
function cherry_get_the_post_content($args)
{
    ob_start();
    cherry_the_post_content($args);
    $output = ob_get_contents();
    ob_end_clean();
    return apply_filters('cherry_get_the_post_content', $output);
}
Exemplo n.º 2
0
/**
 * Retrieve the post content.
 *
 * @since  4.0.0
 * @param  array  $args Set of arguments.
 * @return string       The post content.
 */
function cherry_get_the_post_content($args)
{
    ob_start();
    cherry_the_post_content($args);
    $output = ob_get_contents();
    ob_end_clean();
    /**
     * Filters the post content.
     *
     * @since 4.0.0
     * @since 4.0.5 Added new parametr - $args.
     * @param string $output The post content.
     * @param array  $args   Arguments.
     */
    return apply_filters('cherry_get_the_post_content', $output, $args);
}