Extension Hooks

typography_parse_type_start

Hook Added in Version:

1.4.0

Hook File Location:

core.typography.php

Hook Description:

Modify string prior to all other typography processing

Hook Parameters

  • $str - The string currently being parsed.
  • $this - The currently instantiated Typography class with all of its variables and function, use a reference in your function for this.
  • $prefs - Any prefs sent to the $TYPE->parse_type function with this string.

Hook Returns Data?

Yes

Appearance of Hook in the Code

if (isset($EXT->extensions['typography_parse_type_start']))
{
 $str = $EXT->call_extension('typography_parse_type_start', $str, $this, $prefs);
}