aboutsummaryrefslogtreecommitdiffstats
path: root/doc/en/hook/page_meta.bb
diff options
context:
space:
mode:
Diffstat (limited to 'doc/en/hook/page_meta.bb')
-rw-r--r--doc/en/hook/page_meta.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/en/hook/page_meta.bb b/doc/en/hook/page_meta.bb
new file mode 100644
index 000000000..30a8f9440
--- /dev/null
+++ b/doc/en/hook/page_meta.bb
@@ -0,0 +1,13 @@
+[h2]page_meta[/h2]
+
+Called before generating the page header.
+
+[code]
+ $pagemeta = [ 'og:title' => self::$page['title'] ];
+
+ call_hooks('page_meta',$pagemeta);
+ foreach ($pagemeta as $metaproperty => $metavalue) {
+ self::$meta->set($metaproperty,$metavalue);
+ }
+
+[/code]