Skip to content

Instantly share code, notes, and snippets.

@evtihii
evtihii / custom-languge-swicther-schortcode.php
Created July 13, 2023 10:37
Translatepress custom language switcher shortcode
<?php
/*
* Custom language switcher shortcode
*/
function trpc_language_switcher($atts)
{
ob_start();
global $TRP_LANGUAGE;