All features
Cherry Blossom feature
Theme options: Page SEO
Handles the SEO options page registration and field translation.
Handles the SEO options page registration and field translation.
Capabilities and extension points
Handles the SEO options page registration and field translation.
- see Options_Page
Registers hooks for the SEO options page.
Validates a Google Analytics measurement ID.
- param string $value Submitted value.
- return string Valid ID, or an empty string.
Validates a Google Tag Manager container ID.
- param string $value Submitted value.
- return string Valid ID, or an empty string.
Prevents users without unfiltered_html from changing script snippets.
- param mixed $check Existing short-circuit value.
- param mixed $value Submitted value.
- param mixed $post_id ACF post ID.
- param array $field ACF field definition.
- return mixed Existing result, or false to prevent the update.
Gets a validated, filterable Google integration ID.
- param string $type analytics or tag_manager.
- return string Integration ID.
Filters a validated Google integration ID. Return empty to disable it.
- param string $id Validated integration ID.
Determines whether an external-script row applies to the current request.
- param array $row Script row.
- return bool Whether the row applies.
Gets configured external-script rows for one document position.
- param string $position head, body, or footer.
- return array Matching script rows.
Registers the SEO options sub-page.
Translates ACF field labels for the SEO options group.
ACF JSON stores labels as static strings; this filter applies esc_html__() at runtime so they can be picked up by translation tools.
- param array $field ACF field configuration array.
- return array Field configuration with translated label.
Source reference
This editable reference page is based on the PHP documentation in options/class-page-seo.php.