Documentation

/**
*@var string
*@value "where-used"
*/

echo WHEREUSED_SLUG;

Details

  • WHEREUSED_SLUG
  • constant variable
  • Active
  • 1.0.0

Description

The slug constant is used in several different scenarios within the plugin:

  1. Plugin text domain which is the string required for language translations.
  2. Plugin’s root folder name.
  3. The value of the $_GET[‘page’] where all the plugin’s admin pages are located within the Tools area.
  4. Creating plugin specific nonces.
  5. A class is added to the <body> tag on admin pages so we can specifically identify what plugin admin page we are on in JavaScript

If you notice any incorrect or missing information on this page, please let us know.