An open API service indexing awesome lists of open source software.

https://github.com/richardevcom/add-polylang-support-for-customizer

This plugin adds Polylang support for WordPress Customizer
https://github.com/richardevcom/add-polylang-support-for-customizer

customizer plugin polylang polylang-customizer polylang-support support wordpress wordpress-customizer wordpress-polylang-customizer wordpress-polylang-support wordpress-support

Last synced: 6 days ago
JSON representation

This plugin adds Polylang support for WordPress Customizer

Awesome Lists containing this project

README

        

[![Not Maintained](https://img.shields.io/badge/Maintenance%20Level-Not%20Maintained-yellow.svg)](https://gist.github.com/cheerfulstoic/d107229326a01ff0f333a1d3476e068d)
![WordPress Plugin Version](https://img.shields.io/wordpress/plugin/v/add-polylang-support-for-customizer?label=Plugin%20Version&style=social) ![WordPress Plugin Downloads](https://img.shields.io/wordpress/plugin/dy/add-polylang-support-for-customizer?style=social)
[![PHP compatibility](https://plugintests.com/plugins/wporg/add-polylang-support-for-customizer/php-badge.svg)](https://plugintests.com/plugins/wporg/add-polylang-support-for-customizer/latest)
[![WP compatibility](https://plugintests.com/plugins/wporg/add-polylang-support-for-customizer/wp-badge.svg)](https://plugintests.com/plugins/wporg/add-polylang-support-for-customizer/latest)

# Add Polylang support for Customizer [![Download](https://i.imgur.com/FyDKndG.png)](https://wordpress.org/plugins/add-polylang-support-for-customizer/)

This plugin adds Polylang support for WordPress Customizer.

![banner](https://ps.w.org/add-polylang-support-for-customizer/assets/banner-772x250.png)

## Support & collaboration

[![discord-support-server](https://img.shields.io/discord/852916497314742362?color=%238A48FF&label=DISCORD%20SUPPORT%20SERVER&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAANUAAADwCAMAAACg%2F9E0AAAAdVBMVEUAAAD%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%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suc0%2FOUlk07FboaOfwmXWQX8GawEWXO2fHAIa4JbQtfcI2BVHPzqLE6DNo5StFwEPAFY8VeIX1Q5HHN6%2BsmDHgtR%2BsebHPziLqG3z6x3MgJyYNa4mN4V7%2Bdu26U4tCNF%2Bvu1bmZHrpDvQxaXHrHCamDutFoDKbe4a6yEo2Up2EcL%2FpqHIdTJ5u64nAPaxUGs55fgxP2dwYSK5GyNQWfSod2SUitJ2yufAiXoeGQGp%2FIdwnCZZh%2FVIRvNJc7xmRdGjIoLT7IDRweV42O%2FnJVvJa%2BoPwa7eJHRabTNRG6OOQh4pvoXT3kMuZqmgnv%2BtIccuE2W9NM9C7nrYJww3Cn2Cbv6cQIOV38Jxrxyu8XGIecqm8vvQOpyXMhOvqugkR6T2kS4X8MTENmpSaMiaBarDDLIbfKLVaTgGwW538t5NdSrzyCeg7r4RlGehJB3XF4Bv68pP%2Fbg2MBAAAAgEH%2B1sPYUwEAAAAAAAAAAAAMAizJOkF8xEwmAAAAAElFTkSuQmCC&style=for-the-badge)](http://discord.gg/ZptSdXMPrM)

## Features

- Language switcher in Customizer.
- Localized theme_mods and options for both default and custom made Customizer values.
- Enable/disable forcing _“The language is set from content”_ setting in `Language` > `Settings` > `URL modifications`

## Prerequisite

1. Polylang must be installed and activated.
2. Languages must be set in **Admin > Languages**.
3. _If you have a static front page_:
1. _Create a front page per each language._
2. _Select the front page in **Admin > Settings > Reading** per language._
4. Expect customizer to use setting type = `theme_mod` (default) as in:

`$wp_customize->add_setting( 'setting_id', [ 'type' => 'theme_mod', ] );`

## Installation

This plugin can be installed directly into your plugins folder "as-is"

or:

- go to **Plugins > Add new** and type in Search `Add Polylang support for Customizer` and click **Install** and then **Activate** buttons.
- if you go to **Admin panel > Plugins > Add new > Upload Plugin** and select the archive containing this plugin.

It's safe to activate the plugin at this point. Because the plugin just injects some functionality - there will be no plugin menus or settings to play with.
License

### Licensing

This plugin is licensed under the GPL v2 or later; however, if you opt to use third-party code that is not compatible with v2, then you may need to switch to using code that is GPL v3 compatible.

For reference, [here's a discussion](http://make.wordpress.org/themes/2013/03/04/licensing-note-apache-and-gpl/) that covers the Apache 2.0 License used by [Bootstrap](http://twitter.github.io/bootstrap/).

# Credits

Original solution made by [@soderlind](https://github.com/soderlind) is available [here](https://github.com/soderlind/customizer-polylang). Share some love! This is WordPress plugin version of his solution.