function amp_render()
{
    amp_load_classes();
    $post_id = get_queried_object_id();
    do_action('pre_amp_render_post', $post_id);
    amp_add_post_template_actions();
    $template = new AMP_Post_Template($post_id);
    $template->load();
    exit;
}
Example #2
0
function _manually_load_plugin()
{
    require dirname(dirname(__FILE__)) . '/amp.php';
    amp_load_classes();
}