mage-eventpress/inc/template-prts/title.php

16 lines
420 B
PHP
Raw Normal View History

2020-07-12 06:42:13 -04:00
<?php
2020-05-24 04:17:41 -04:00
if (!defined('ABSPATH')) {
die;
} // Cannot access pages directly.
2020-07-12 06:42:13 -04:00
add_action('mep_event_title', 'mep_ev_title');
2020-05-24 04:17:41 -04:00
if (!function_exists('mep_ev_title')) {
2020-07-12 06:42:13 -04:00
function mep_ev_title()
{
global $post;
ob_start();
require(mep_template_file_path('single/title.php'));
$content = ob_get_clean();
echo apply_filters('mage_event_single_title', $content, $post->ID);
}
2020-05-24 04:17:41 -04:00
}