1. Document Library Pro
  2. Developer Documentation

Grid card hooks

Document Library provides the following WordPress action hooks to display additional content within the cards.

  • document_library_pro_grid_card_before_info
  • document_library_pro_grid_card_before_title
  • document_library_pro_grid_card_before_excerpt
  • document_library_pro_grid_card_before_link
  • document_library_pro_grid_card_after_link

The diagram below illustrates the output position of these hooks within the default grid card structure.

Grid card hook diagram

Note that the content labels within the hooks names are used purely to illustrate their position within the grid card layout.

They will work irrespective of whether the content the hook is named after is visible. For example, document_library_pro_grid_card_before_excerpt will output content even if the excerpt is disabled via your settings.

Related Articles

Still need help?
If searching the knowledge base hasn't answered your question, please contact support.