Add the missing hreflang x-default Tag for WPML.
Visit our
Website in order to find more WordPress plugins.
Small and simple:
- Responsive - fits to all screens
- Lightweight code
Get your hreflang x-default Tag for WPML Plugin now!
How it works:
- Upload the Plugin
- Activate the Plugin
Use WordPress' Add New Plugin feature, searching "Onpage SEO Tweaks | inventivo", or download the archive and:
- Unzip the archive on your computer
- Upload
inventivo-hreflang-xdefault-tag directory to the /wp-content/plugins/ directory
- Activate the plugin through the 'Plugins' menu in WordPress
1.0.7 Tested with WordPress 7.1 on PHP 7.4, 8.3 and 8.4. The WPML settings are now read only after WPML has been detected, which removes a PHP 8 warning that occurred on every page load when WPML was not installed. The x-default URL is escaped. Dismissing the admin notice now requires a valid nonce, which closes a request forgery gap without locking out editors and authors. Please note: the x-default output itself was not tested against a live WPML installation. The admin notice now links to a page that exists again, and its stylesheet uses a plugin specific handle so it no longer collides with our other plugins.
1.0.6 Ability to dismiss admin notice persistently.
1.0.5 Added note for Weglot Support in Premium Plugin
1.0.4 Add admin image and notice.
1.0.3 Change class name.
1.0.2 Code cleanup.
1.0.1 Code cleanup.
1.0.0 Modify code for compatibility with newer WPML versions.
0.0.3 Moved project to github.
0.0.2 Added fix for not causing error when WPML is not installed or icl_get_languages function is not defined.