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

18 lines
490 B
PHP
Raw Normal View History

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