Filter_Has_Injectable_Properties
Provides image support for filters.
Tags
Table of Contents
- inject_properties() : array<string|int, mixed>
- Inject properties into the possible choices.
Methods
inject_properties()
Inject properties into the possible choices.
public
inject_properties(array<string|int, mixed> $possible_choices[, array<string|int, mixed> $context_post_ids = [] ]) : array<string|int, mixed>
Parameters
- $possible_choices : array<string|int, mixed>
-
The possible choices.
- $context_post_ids : array<string|int, mixed> = []
-
Optional. Array of post IDs from the current query context for contextual calculations.
Return values
array<string|int, mixed> —The possible choices with injected properties.