Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save VictorPietro/9e5643bfc6fc8441bb7ee529c61b6781 to your computer and use it in GitHub Desktop.
Save VictorPietro/9e5643bfc6fc8441bb7ee529c61b6781 to your computer and use it in GitHub Desktop.
Get JetEngine's Glossary Label by its Value programatically
<?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