Board Index › Knowledge Base › Developer Documentation › Extending Knowledge Base Events and Hooks

Extending Knowledge Base Events and Hooks

Developer guide for subscribing to Knowledge Base PHP and template events.

phpBB SEO Knowledge Base dispatches several core and custom events allowing extension developers to hook into the workflow.

PHP Events:
  • phpbbseo.knowledge.article_view: Dispatched before an article is displayed. Allows modifying template variables and view counters.
  • phpbbseo.knowledge.suggest_results: Dispatched during the AJAX suggestion query. Allows custom relevance weighting or filtering.
  • phpbbseo.knowledge.category_modify: Dispatched when querying category article listings.
Template Events:
  • knowledge_article_content_after.html: Injected beneath the article body text.
  • knowledge_sidebar_before.html: Injected above the category navigation sidebar.

Share this article

Share this guide with your network and community.

Was this article helpful?
Login to vote.