← Home

Elder.js Hook: shortcodes

shortcodes : Executed after the route's html has been compiled, but before the layout html has been compiled.

Elder.js uses this hook to process shortcodes. The vast majority of users won't need to use this hook, but if you were so inclined you could write your own shortcode parser or if you'd like to disable shortcodes completely, you can add 'elderProcessShortcodes' to hooks.disable in your elder.config.js file.

NOTE: Don't use this hook for anything besides shortcodes.

Props :
helpers
data
settings
request
query
errors
cssStack
headStack
customJsStack
layoutHtml
shortcodes
allRequests
Mutable :
errors
layoutHtml
cssStack
headStack
customJsStack
This hook is an 'advanced' hook meaning it geared towards advanced users or plugins.
Stable · Location: Page.ts
Elder.js hook Lifecycle