Skip to content

Documentation

Extensive Documentation for PowerPack & WooPack to help you with common questions and issues.

PowerPack

  1. Home
  2. Docs
  3. PowerPack
  4. Development
  5. Hooks & Filters in Content Grid Module

Hooks & Filters in Content Grid Module

The PowerPack Content Grid module is a highly flexible and powerful module to display content on your site. We have made it developer-friendly by adding Hooks & Filters.

You can also customize it by overriding the module in your theme. Click here to understand how module override functionality works.

Hooks in Content Grid Module

HookLocationDescription
pp_cg_before_postsBefore all the PostsHooks the code before the opening div class="pp-post-filters-wrapper wrapper.
pp_cg_after_postsAfter all the PostsHooks the code after the closing div class="pp-post-filters-wrapper wrapper and above pagination HTML.
pp_cg_after_paginationAfter PaginationHooks the code after pagination elements.
pp_cg_before_post_contentBefore single post content (single grid item’s content)Hooks the code before the single grid item’s content wrapper.
pp_cg_after_post_contentHooks the code after the closingHooks the code after the single grid item’s content wrapper.

Filters in Content Grid Module

FilterDescription
pp_cg_placeholder_imgChange the default placeholder image.
Was this article helpful to you? Yes No 3
×