Created
February 10, 2025 18:54
-
-
Save VictorPietro/9e5643bfc6fc8441bb7ee529c61b6781 to your computer and use it in GitHub Desktop.
Get JetEngine's Glossary Label by its Value programatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get the glossary label by having the value | |
// Change "35" to the the ID of the glossary | |
// This ID can be seen when you hit "save" while inspecting admin-ajax.php request on Network Dev Tools tab (item[id]) | |
// Or you can also check it in the database | |
$glossary_value = 'example'; | |
$glossary_label = jet_engine_label_by_glossary($glossary_value, 35); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment