> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/wordpress/use-cases.md).

# Use cases

- [Lang attribute](https://developers.weglot.com/wordpress/use-cases/lang-attribute.md): Modify the lang attribute on html tag
- [Translate link](https://developers.weglot.com/wordpress/use-cases/translate-link.md): Add method to translate specifix link
- [How Weglot handles link translation and exclusions](https://developers.weglot.com/wordpress/use-cases/how-weglot-handles-link-translation-and-exclusions.md)
- [Implementing Custom Link Translation](https://developers.weglot.com/wordpress/use-cases/implementing-custom-link-translation.md)
- [Wp-rocket Lazyload](https://developers.weglot.com/wordpress/use-cases/wp-rocket-lazyload.md): Modify attr when Lazyloading is activate on wp-rocket plugins
- [Deactivate Weglot on Elementor](https://developers.weglot.com/wordpress/use-cases/deactivate-weglot-on-elementor.md): Deactivate Weglot (translate and add swtcher(s)) when you're on elementor webview
- [Weglot translate on Elementor](https://developers.weglot.com/wordpress/use-cases/weglot-translate-on-elementor.md): With this code, we force translation of content generate by elementor using the elementor/frontend/the\_content filter
- [Language Selector Styling](https://developers.weglot.com/wordpress/use-cases/language-selector-styling.md): Adding your own CSS code or HTML button
- [Change flag size](https://developers.weglot.com/wordpress/use-cases/change-flag-size.md): Changing the Weglot flag size with CSS
- [Exclude a Custom Post Type](https://developers.weglot.com/wordpress/use-cases/exclude-a-custom-post-type.md)
- [Exclude the search page](https://developers.weglot.com/wordpress/use-cases/exclude-the-search-page-from-translations.md)
- [Exclude draft or private status post](https://developers.weglot.com/wordpress/use-cases/exclude-the-search-page-from-translations-1.md)
- [Plugin Woocommerce: Translate all email sent to customers](https://developers.weglot.com/wordpress/use-cases/translation-of-woocommerce-emails-sent-to-customers.md)
- [Plugin WooCommerce: Translate Product URLs](https://developers.weglot.com/wordpress/use-cases/translate-woocommerce-product-urls.md): By default, Weglot doesn't allow you to translate product URL, you can do it following this
- [Use custom language code (URL, lang and hreflang attribute)](https://developers.weglot.com/wordpress/use-cases/use-custom-language-code-url-lang-and-hreflang-attribute.md)
- [Theme OceanWP: Use language selector in the main menu](https://developers.weglot.com/wordpress/use-cases/theme-oceanwp-use-language-selector-in-the-main-menu.md): How to fix the language selector in mobile menu of OceanWP theme
- [Theme Avada: Use language selector in the main menu](https://developers.weglot.com/wordpress/use-cases/theme-avada-use-language-selector-in-the-main-menu.md): How to fix the language selector in mobile menu of Avada theme
- [LinkedIn Share Post: Translate oEmbed WP URL](https://developers.weglot.com/wordpress/use-cases/linkedin-share-post-translate-oembed-wp-url.md): Use filter to translate oEmbed WP URL
- [Hide button on excluded page](https://developers.weglot.com/wordpress/use-cases/hide-button-on-excluded-page.md): Since the version 3.5 of Weglot plugin, the button is visible even is the page is excluded. Here is how to hide it on excluded page
- [Auto switch only for HomePage](https://developers.weglot.com/wordpress/use-cases/auto-switch-only-for-homepage.md): Since the version 3.5 of Weglot plugin, the auto redirection feature works on all pages. Here is how to restrict it to the homepage only
- [Proxify Url](https://developers.weglot.com/wordpress/use-cases/proxify-url.md): Since the version 4.2 of Weglot plugin, you have a filter to proxify an url
- [Translate pdf for Woocommerce pdf invoice](https://developers.weglot.com/wordpress/use-cases/translate-pdf-for-woocommerce-pdf-invoice.md): Since the version 3.7 of Weglot plugin, you can translate pdf generate by WooCommerce PDF Invoices & Packing Slips plugin
- [Translate pdf with Gravity pdf](https://developers.weglot.com/wordpress/use-cases/translate-pdf-with-gravity-pdf.md): Since the version 3.7 of Weglot plugin, you can translate pdf generate by Gravity PDF.
- [Translate Dublin core meta (or other meta)](https://developers.weglot.com/wordpress/use-cases/translate-dublin-core-meta-or-other-meta.md): Dublin Core is a collection of meta tags to describe your content.These tags are automatically generated. Recognised by states/governments, these are used by directories, Bing, Baidu and Yandex.
- [How to not translate specific ajax action](https://developers.weglot.com/wordpress/use-cases/how-to-not-translate-specific-ajax-action.md)
- [How to get translated url programmatically](https://developers.weglot.com/wordpress/use-cases/how-to-get-translated-url-programmatically.md)
- [How to set WP locale based on Weglot current language](https://developers.weglot.com/wordpress/use-cases/how-to-set-wp-locale-based-on-weglot-current-language.md)
- [How to translate mail from Photo Reviews for WooCommerce](https://developers.weglot.com/wordpress/use-cases/how-to-translate-mail-from-photo-reviews-for-woocommerce.md): Works since version 1.2.7 of Photo Reviews for WooCommerce
- [How to translate schema from schema.org generate by Yoast plugin](https://developers.weglot.com/wordpress/use-cases/how-to-translate-schema-from-schema.org-generate-by-yoast-plugin.md): On this example we use a filter to translate some entry from our schema based on this doc : https://developer.yoast.com/features/schema/api/
- [How to translate email sending by plugin WP Mail SMTP](https://developers.weglot.com/wordpress/use-cases/how-to-translate-email-sending-by-plugin-wp-mail-smtp.md): On this example we use a filter to translate our email message based on this doc : https://wpmailsmtp.com/docs/setting-a-custom-reply-to-email/
- [How to hide the Weglot admin button for non administrator roles](https://developers.weglot.com/wordpress/use-cases/how-to-hide-the-weglot-admin-button-for-non-administrator-roles.md): In this example, we hide the Weglot button in the top navigation for users without the role of administrator
- [Exemple of snippet to translate search from JetSearch plugin](https://developers.weglot.com/wordpress/use-cases/exemple-of-snippet-to-translate-search-from-jetsearch-plugin.md): In this example, we use custom code to translate the search result provide by the plugin jetSearch
- [Example of snippet to translate your checkout element (override/added by the Funnel Builder plugin)](https://developers.weglot.com/wordpress/use-cases/example-of-snippet-to-translate-your-checkout-element-override-added-by-the-funnel-builder-plugin.md)
- [LScache](https://developers.weglot.com/wordpress/use-cases/lscache.md): Compatibility issue with LScache
- [How to fix live builder issue with Weglot](https://developers.weglot.com/wordpress/use-cases/how-to-fix-live-builder-issue-with-weglot.md): Compatibility issue with live theme builder
- [Add translated url to Rankmath sitemap index](https://developers.weglot.com/wordpress/use-cases/add-translated-url-to-rankmath-sitemap-index.md): First step, add this snippet to be sure to purge the sitemap caching
- [Advanced Woo Search X Weglot](https://developers.weglot.com/wordpress/use-cases/advanced-woo-search-x-weglot.md): Advanced Woo Search (aws) is a plugin to make advance search with WooCommerce. You can find the plugin here : https://wordpress.org/plugins/advanced-woo-search/
- [Conditionally Disabling Weglot Translation for Specific URLs](https://developers.weglot.com/wordpress/use-cases/conditionally-disabling-weglot-translation-for-specific-urls.md): When using Weglot on your website, you might occasionally encounter issues where its translation processes interfere with certain functionalities, like generating PDFs or handling custom endpoints. In
