template-functions.php
Template functions for Document Library Pro
Tags
Table of Contents
- dlp_get_doc_library() : string
- Retrieves a post table for the specified args. The arg names are the same as those used in the shortcode and Table_Args, as well as the addtional DLP args.
- dlp_the_doc_library() : mixed
- Outputs a post table for the specified args. The arg names are the same as those used in the shortcode and Table_Args, as well as the addtional DLP args.
- dlp_get_document() : Document|false
- Get a document
Functions
dlp_get_doc_library()
Retrieves a post table for the specified args. The arg names are the same as those used in the shortcode and Table_Args, as well as the addtional DLP args.
dlp_get_doc_library([array<string|int, mixed> $args = [] ]) : string
Parameters
- $args : array<string|int, mixed> = []
-
The table args.
Tags
Return values
string —The data table as a HTML string.
dlp_the_doc_library()
Outputs a post table for the specified args. The arg names are the same as those used in the shortcode and Table_Args, as well as the addtional DLP args.
dlp_the_doc_library([array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $args : array<string|int, mixed> = []
-
The table args.
Tags
Return values
mixed —dlp_get_document()
Get a document
dlp_get_document(int $id) : Document|false
Parameters
- $id : int
-
Document ID