• File: replace-shortcodes.php
  • Full Path: /home/dealkatnwc/www/plugins/easy-timer/includes/replace-shortcodes.php
  • Date Modified: 01/15/2026 11:06 PM
  • File size: 510 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php if (!defined('ABSPATH')) { exit(); }
if ((function_exists('current_user_can')) && (!current_user_can('manage_options'))
 && (function_exists('user_can')) && (!user_can($data['post_author'], 'manage_options'))) {
global $easy_timer_shortcodes;
foreach ((array) $easy_timer_shortcodes as $tag) {
foreach (array('post_content', 'post_content_filtered', 'post_excerpt', 'post_title') as $key) {
$data[$key] = str_replace(array('['.$tag, $tag.']'), array('&#91;'.$tag, $tag.'&#93;'), $data[$key]); } } }