Manga+Press Documentation
  • Introduction
  • Guides
    • Frequently Asked Questions
    • Contributing
  • Getting Started
    • Installation
    • Configuring Manga+Press
    • Using Manga+Press
    • Theme Customization
  • Developer API
    • Image Sizes
  • Template Tags
    • Conditional Tags
    • mangapress_comic_navigation
    • mangapress_get_calendar
    • mangapress_theme_supports_cover_images
    • mangapress_has_cover_image
    • mangapress_the_comic_cover
  • Functions
    • mangapress_comic_navigation
    • mangapress_day_link
    • mangapress_end_latest_comic
    • mangapress_get_calendar
    • mangapress_get_next_post_in_loop
    • mangapress_get_previous_post_in_loop
    • mangapress_month_link
    • mangapress_start_latest_comic
  • Filters
    • Manga+Press Template API — Filters
    • mangapress_archive_gallery_style
    • mangapress_options_fields
    • mangapress_comic_front_slug
    • mangapress_options_sections
    • mangapress_comic_navigation_args
    • mangapress_comic_navigation_items
    • mangapress_get_adjacent_comic_args
    • mangapress_get_boundary_comic_args
    • mangapress_archive_gallery_style
    • mangapress_comic_front_slug
    • mangapress_options_fields
  • Actions
    • Manga+Press Template API — Actions
    • save_post_mangapress_comic
    • mangapress_comic_page_content
    • mangapress_theme_compatible-$theme
Powered by GitBook
On this page
  • mangapress_after_body_open
  • mangapress_page_header
  • mangapress_after_page_header
  • mangapress_get_comic_header
  • mangapress_get_comic_footer
  • mangapress_before_footer
  • mangapress_before_content
  • mangapress_before_comic_loop
  • mangapress_before_article
  • mangapress_before_article_content
  • mangapress_archive_style_template
  • Parameters
  • mangapress_after_article_content
  • mangapress_after_article
  • mangapress_after_latest_comic
  • mangapress_output_no_comics_message
  • mangapress_archive_style_opening_tag
  • Parameters
  • mangapress_archive_style_closing_tag
  • Parameters
  • mangapress_after_archive_comic_loop
  • mangapress_after_content
  • mangapress_sidebar
  1. Actions

Manga+Press Template API — Actions

Previousmangapress_options_fieldsNextsave_post_mangapress_comic

Last updated 5 years ago

This API provides a means of allowing support from 3rd party themes.

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

Also see Manga+Press Template API — Filters