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

20 lines
543 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_organizer', 'mep_ev_org');
2020-05-24 04:17:41 -04:00
if (!function_exists('mep_ev_org')) {
2020-07-12 06:42:13 -04:00
function mep_ev_org()
{
global $post, $author_terms;
ob_start();
if ($author_terms) {
2022-02-03 05:11:51 -05:00
$org = get_the_terms(get_the_id(), 'mep_org');
2020-07-12 06:42:13 -04:00
require(mep_template_file_path('single/organizer.php'));
2022-02-03 05:11:51 -05:00
2020-07-12 06:42:13 -04:00
}
$content = ob_get_clean();
echo apply_filters('mage_event_single_org_name', $content, $post->ID);
}
2022-02-16 22:29:12 -05:00
}