public function filter_post($content) { if (empty($content)) { // Nothing to filter, continue return $content; } $cache = $this->get_post_cache(); $to_cache = array(); $content = $this->process_content($content, $cache, $to_cache); $this->maybe_update_post_cache($to_cache); return $content; }