Skip to main content

CreditStampService

\Benecaster\Episode\CreditStampService

Class Free

Internal class responsible for the credit stamp operation. Resolves a show’s credit template against an episode, runs shortcodes, and writes the result to _benecaster_stamped_credit. Add-ons should use the public helper benecaster_apply_default_credit() rather than invoking CreditStampService directly — the constructor signature is not considered stable API and may change.

Methods

Method Visibility Since Description
stamp( int $episode_id, string $credit_id ): string Public Resolves the credit template identified by $credit_id against $episode_id, executes shortcodes, persists the result to _benecaster_stamped_credit, and returns the stamped HTML. Fires benecaster_credit_before_stamp filter then benecaster_credit_applied action.