Extension Hooks

publish_form_category_display

Hook Added in Version:

1.4.0

Hook File Location:

cp.publish.php

Hook Description:

Rewrite the displaying of categories, if you dare!

Hook Parameters

  • $cat_group - The category group ID for this form
  • $which - new, edit, preview, or save
  • $deft_category - Default categories for the weblog
  • $catlist - If not a new entry, the already set categories

Hook Returns Data?

Yes

Appearance of Hook in the Code

if (isset($EXT->extensions['publish_form_category_display']))
{
 $r .= $EXT->call_extension('publish_form_category_display', $cat_group, $which, $deft_category, $catlist);
 if ($EXT->end_script === TRUE) return;
}