pfeifferNet

print.php

Functionality for the print pages.

Tags
since
1.0.0
copyright

2024 Keith Pfeiffer

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
since
5.4.0
see
Printing::DEFAULT_PRINT_ARGS
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
since
5.3.0
see
Printing::DEFAULT_PRINT_ARGS
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
since
6.0.0
link
https://developer.wordpress.org/reference/hooks/wp_get_attachment_image_attributes/
Return values
array<string|int, mixed>

The modified attribute values for markup.


        
On this page

Search results