Skip to content

Instantly share code, notes, and snippets.

View Kyatipov's full-sized avatar
🏠
Working from home

Kyatipov

🏠
Working from home
View GitHub Profile
@Kyatipov
Kyatipov / polylang-langswitcher-shortcode.php
Created September 21, 2022 04:32 — forked from nicomollet/polylang-langswitcher-shortcode.php
Polylang shortcode for lang switcher
<?php
/**
* Polylang Shortcode - https://wordpress.org/plugins/polylang/
* Add this code in your functions.php
* Put shortcode [polylang_langswitcher] to post/page for display flags
*
* @return string
*/
function custom_polylang_langswitcher() {
$output = '';