public function eventContent($content)
    {
        if (!is_singular($this->slug)) {
            return $content;
        }

        $custom_content = $this->getCustomContent();
        if ($custom_content) {
            $content = $custom_content;
        }

        return $content;
    }
public function eventContent($content)
    {
        if (!is_singular($this->slug)) {
            return $content;
        }

        $custom_content = $this->getCustomContent();
        if ($custom_content) {
            $content = $custom_content;
        }

        return $content;
    }
public function eventContent ( $ content ) { if ( ! is_singular ( $ this -> slug ) ) { return $ content ; } $ custom_content = $ this -> getCustomContent ( ) ; if ( $ custom_content ) { $ content = $ custom_content ; } return $ content ; }
Replace content if occasion has custom content.
@param  string $content Content of the current post.
@return string
Replace content if occasion has custom content .