The $mod Variable

The $mod variable is defined early in the NGFB 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 NGFB 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 module object methods. Here’s an example to get a custom Open Graph description value (if one has been defined):