Frontend SEO and script integration.
Capabilities and extension points
Outputs validated analytics, tag-manager, and privileged scripts.
Initializes the module.
Registers frontend output hooks.
Loads the head integration partial.
Loads the body integration partial.
Loads the footer integration partial.
Gets a validated Google Analytics ID.
- return string Google Analytics ID, or an empty string.
Gets a validated Google Tag Manager ID.
- return string Google Tag Manager ID, or an empty string.
Gets filtered external snippets for one document position.
- param string $position head, body, or footer.
- return array External script snippets.
Filters a privileged external script before output.
- param string $script Trusted configured snippet.
- param array $row ACF repeater row.
- param string $position Document position.
Source reference
This editable reference page is based on the PHP documentation in frontend/class-seo.php.