Frage

Hello I need to fetch the ticket iframe from Eventbrite to a wordpress page. I purchased the ticket plugin and is getting PHP Fatal error: Using $this when not in object context for the following Function

for the following function for inlcude line

public function displayEventBriteTicketForm() {
    include( TribeEventsTemplates::getTemplateHierarchy( 'ticket-form', 'hooks', 'eventbrite', $this->pluginPath ) );
    include( TribeEventsTemplates::getTemplateHierarchy( 'ticket-form', 'modules', 'eventbrite', $this->pluginPath ) );
}

Help

War es hilfreich?

Lösung

Solved the Problem

replaced $this->pluginPath with $pluginPath resolved the error message

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top