single.php
Functionality for all single posts.
Tags
Table of Contents
Functions
- enqueue_single_assets() : void
- Enqueue the scripts and styles for single posts.
- filter_related_posts() : array<string|int, mixed>
- Filter the related posts query args to add related post list.
Functions
enqueue_single_assets()
Enqueue the scripts and styles for single posts.
enqueue_single_assets() : void
Tags
filter_related_posts()
Filter the related posts query args to add related post list.
filter_related_posts(array<string|int, mixed> $qv, array<string|int, mixed> $attributes) : array<string|int, mixed>
Parameters
- $qv : array<string|int, mixed>
-
The WP_Query args.
- $attributes : array<string|int, mixed>
-
The Generateblocks Query Loop block attributes.
Tags
Return values
array<string|int, mixed> —The (maybe) modified query arguments.