print.php
Functionality for the print pages.
Tags
Table of Contents
Functions
- print_cover_description() : string
- Maybe add description to print front pages.
- print_cover_subtitle() : string
- Add subtitle to print front pages.
- disable_lazy_load() : array<string|int, mixed>
- Disable lazy load on print images.
- get_print_args() : array<string|int, mixed>
- Get arguments for the print page.
Functions
print_cover_description()
Maybe add description to print front pages.
print_cover_description(string $description[, array<string|int, mixed> $args = array() ]) : string
Chooses the description to display determined by page content.
Parameters
- $description : string
-
The page description to be filtered.
- $args : array<string|int, mixed> = array()
-
Content arguments.
Tags
Return values
string —The filtered description.
print_cover_subtitle()
Add subtitle to print front pages.
print_cover_subtitle(string $subtitle[, array<string|int, mixed> $args = array() ]) : string
Chooses the subtitle to display determined by content type.
Parameters
- $subtitle : string
-
The page subtitle to be filtered.
- $args : array<string|int, mixed> = array()
-
Content arguments.
Tags
Return values
string —The filtered subtitle.
disable_lazy_load()
Disable lazy load on print images.
disable_lazy_load(array<string|int, mixed> $attr, WP_Post $attachment, array<string|int, mixed>|string $size) : array<string|int, mixed>
Parameters
- $attr : array<string|int, mixed>
-
Array of attribute values for the image markup, keyed by attribute name.
- $attachment : WP_Post
-
Image attachment post.
- $size : array<string|int, mixed>|string
-
Requested image size.
Tags
Return values
array<string|int, mixed> —The modified attribute values for markup.
get_print_args()
Get arguments for the print page.
get_print_args() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —The array of print arguments.