diff options
author | Mario <mario@mariovavti.com> | 2018-09-22 10:44:51 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-09-22 10:44:51 +0200 |
commit | 12d22709353151925797707e0a1c02e3703809bf (patch) | |
tree | 0e1d909710a7c7c21073ccd826acd2b1f5e6c03f /doc/hook/page_meta.bb | |
parent | 2b452ffbd370f52122577910a8b36846d526678d (diff) | |
parent | ed00d1b2e3895f5feb0767d1b002f7be08797379 (diff) | |
download | volse-hubzilla-12d22709353151925797707e0a1c02e3703809bf.tar.gz volse-hubzilla-12d22709353151925797707e0a1c02e3703809bf.tar.bz2 volse-hubzilla-12d22709353151925797707e0a1c02e3703809bf.zip |
Merge branch 'page-meta-properties' into 'dev'
Page meta properties
See merge request hubzilla/core!1283
Diffstat (limited to 'doc/hook/page_meta.bb')
-rw-r--r-- | doc/hook/page_meta.bb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/hook/page_meta.bb b/doc/hook/page_meta.bb new file mode 100644 index 000000000..30a8f9440 --- /dev/null +++ b/doc/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] |