Пример #1
0
/**
 * Loads appropriate page template file.
 *
 * @since 4.0.0
 */
function cherry_get_content()
{
    do_action('cherry_content_before');
    include apply_filters('cherry_get_content', cherry_template_path());
    do_action('cherry_content');
    do_action('cherry_content_after');
}
Пример #2
0
/**
 * Loads appropriate page template file.
 *
 * @since 4.0.0
 */
function cherry_get_content()
{
    /**
     * Fires before content `.*-wrapper` are opened.
     *
     * @since 4.0.0
     */
    do_action('cherry_content_before');
    /**
     * Main template file.
     *
     * @see lib/class/class-cherry-wrapping.php
     * @since 4.0.0
     */
    include apply_filters('cherry_get_content', cherry_template_path());
    /**
     * Fires when entry `<article>` are closed.
     *
     * @since 4.0.0
     */
    do_action('cherry_content');
    /**
     * Fires when primary `.content-area` are closed.
     *
     * @since 4.0.0
     */
    do_action('cherry_content_after');
}