Skip to content

Instantly share code, notes, and snippets.

@ahmedch1
Created October 3, 2022 21:27
Show Gist options
  • Save ahmedch1/49a35536acd98f202b7045b8b082b3fe to your computer and use it in GitHub Desktop.
Save ahmedch1/49a35536acd98f202b7045b8b082b3fe to your computer and use it in GitHub Desktop.
In Style style.css add
Text Domain: ahmedsite
ahmedsite : the name of the theme
In functions.php
add_action('init', function() {
pll_register_string('ahmedsite', 'We are Testing Here');
});
Where to call the string
<?php pll_e('We are Testing Here');?>
It will be shown in the backend after that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment