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 the three types of WPSSO Core modules: post, term, and user.

An example $mod array for a post:

An example to retrieve custom post meta:

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