ampproject / ampproject/amp-wp

Allow users to add hreflang attribute for Internationalization

Open
#7,877 2 comments 0 reactions 0 assignees View on GitHub
Enhancement
Dominant language
PHP
Stars
1.8k
Forks
378
Avg merge
1d 15h
Merged PRs (30d)
10

Description

### Feature Description

AMP currently does not support the `hreflang` attribute on `` tags with the attribute. This allows users to add internationalization to AMP pages to effectively and target specific language or regional audiences.

I will suggest adding a filter which will allow programs and users to customize the attribute as per thier requirements.

ref: https://amp.dev/documentation/examples/websites/guides/internationalization/

### Acceptance Criteria

_No response_

### Implementation Brief

_No response_

### QA Testing Instructions

_No response_

### Demo

_No response_

### Changelog Entry

_No response_

Contributor guide

Open the contributing guide

Research direction

No implementation file, test, or entry point is named. Start by tracing how AMP link-tag attributes are filtered or sanitized, then review the linked internationalization guidance. Done means users can configure hreflang on supported link tags without weakening AMP validation, with tests covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
internationalization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.