The $mod Variable

The $mod variable is defined early in the WPSSO Core load process and is passed to most methods and filters. The name $mod is short for "module" and it defines essential array values for four WPSSO Core module types:

  • comment
  • post
  • term
  • user

An example $mod array for a post:

An example to retrieve custom post meta:

The 'obj' element can be used to call module object methods. Here's an example to get a custom Open Graph description value (if one has been defined):