# Manga+Press Template API — Actions

This API provides a means of allowing support from 3rd party themes. [Also see Manga+Press Template API — Filters](https://mangapress.gitbook.io/manga-press-documentation/filters/template-api-filters)

## mangapress\_after\_body\_open

Runs after wp\_body\_open. Allows for markup insertion following  and wp\_body\_open()

**@since** 4.0.0

## mangapress\_page\_header

Allows for site branding/main page header insertion

**@since** 4.0.0

## mangapress\_after\_page\_header

Allows for content to be inserted directly after header

**@since** 4.0.0

## mangapress\_get\_comic\_header

Output theme header specific to Manga+Press content types, or normal theme header.

**@since** 4.0.0

## mangapress\_get\_comic\_footer

Output theme footer specific to Manga+Press, or normal theme footer.

**@since** 4.0.0

## mangapress\_before\_footer

Handle output before footer.

**@since** 4.0.0

## mangapress\_before\_content

Run scripts or insert content before the main content area.

**@since** 4.0.0

## mangapress\_before\_comic\_loop

Run scripts or insert content before the main loop.

**@since** 4.0.0

## mangapress\_before\_article

Run scripts or insert content before the article tag but after the loop starts

**@since** 4.0.0

## mangapress\_before\_article\_content

Run scripts or insert content before the article content but after the article opening tag.

**@since** 4.0.0

## mangapress\_archive\_style\_template

Output the individual archive entry markup based on archive style.

**@since** 4.0.0

### Parameters

* $archive\_style (string) The comic archive page style, can be `'list'`, `'gallery'`, or `'calendar'`

## mangapress\_after\_article\_content

Run scripts or insert content after the article content but before the article closing tag.

**@since** 4.0.0

## mangapress\_after\_article

Run scripts or insert content after the closing article tag but before the main loop ends or iterates to the next post.

**@since** 4.0.0

## mangapress\_after\_latest\_comic

Run scripts or insert content after latest comic loop conditional.

**@since** 4.0.0

## mangapress\_output\_no\_comics\_message

Outputs message if no comics are found for archive or other listings.

**@since** 4.0.0

## mangapress\_archive\_style\_opening\_tag

Output the opening wrapping tag based on the archive style.

**@since** 4.0.0

### Parameters

* $archive\_style (string) $archive\_style The comic archive page style, can be `'list'`, `'gallery'`, or `'calendar'`.

## mangapress\_archive\_style\_closing\_tag

Output the closing wrapping tag based on the archive style.

**@since** 4.0.0

### Parameters

* $archive\_style (string) $archive\_style The comic archive page style, can be `'list'`, `'gallery'`, or `'calendar'`.

## mangapress\_after\_archive\_comic\_loop

Run scripts or insert content directly after comic archive loop.

**@since** 4.0.0

## mangapress\_after\_content

Run scripts or insert content after the main content area.

**@since** 4.0.0

## mangapress\_sidebar

Possibly insert a sidebar.

**@since** 4.0.0
