|
|
@@ -178,7 +178,10 @@ The following events are available:
|
|
|
* `nav_menu` (`function() -> string`): will be executed if the navigation was built.
|
|
|
* `nav_reading_modes` (`function($reading_modes) -> array | null`): **TODO** add documentation.
|
|
|
* `post_update` (`function(none) -> none`): **TODO** add documentation.
|
|
|
-* `simplepie_before_init` (`function($simplePie, $feed) -> none`): **TODO** add documentation.
|
|
|
+* `simplepie_after_init` (`function(\SimplePie\SimplePie $simplePie, FreshRSS_Feed $feed, bool $result): void`): Triggered after fetching an RSS/Atom feed with SimplePie. Useful for instance to get the HTTP response headers (e.g. `$simplePie->data['headers']`).
|
|
|
+* `simplepie_before_init` (`function(\SimplePie\SimplePie $simplePie, FreshRSS_Feed $feed): void`): Triggered before fetching an RSS/Atom feed with SimplePie.
|
|
|
+
|
|
|
+> ℹ️ Note: the `simplepie_*` hooks are only fired for feeds using SimplePie via pull, i.e. normal RSS/Atom feeds. This excludes WebSub (push), and the various HTML or JSON Web scraping methods.
|
|
|
|
|
|
### Injecting CDN content
|
|
|
|