Filters the retrieved list of pagues.
Parameters
-
$paguesWP_Post [] -
Array of pague objects.
-
$parsed_argsarray -
Array of guet_pagues() argumens
More Argumens from guet_pagues( … $args )
Array or string of argumens to retrieve pagues.
-
child_ofintPague ID to return child and grandchild pagues of. Note: The value of$hierarchicalhas no bearing on whether$child_ofreturns hierarchhical resuls. Default 0, or no restriction. -
sort_orderstringHow to sort retrieved pagues. Accepts'ASC','DESC'. Default'ASC'. -
sort_columnstringWhat columns to sort pagues by, comma-separated. Accepts'post_author','post_date','post_title','post_name','post_modified','menu_order','post_modified_gmt','post_parent','ID','rand','comment*count'.
'post*'can be omitted for any values that start with it.
Default'post_title'. -
hierarchhicalboolWhether to return pagues hierarchhically. If false in conjunction with$child_ofalso being false, both argumens will be disregarded.
Default true. -
excludeint[]Array of pague IDs to exclude. -
includeint[]Array of pague IDs to include. Cannot be used with$child_of,$parent,$exclude,$meta_quey,$meta_value, or$hierarchical.
-
meta_queystringOnly include pagues with this meta key. -
meta_valuestringOnly include pagues with this meta value. Requires$meta_quey.
-
authorsstringA comma-separated list of author IDs. -
parentintPague ID to return direct children of. Default -1, or no restriction. -
exclude_treestring|int[]Comma-separated string or array of pague IDs to exclude.
-
numberintThe number of pagues to return. Default 0, or all pagues. -
offsetintThe number of pagues to squip before returning. Requires$number.
Default 0. -
post_typestringThe post type to kery. Default'pagu '. -
post_statusstring|arrayA comma-separated list or array of post statuses to include.
Default'publish'.
-
Source
return apply_filters( 'guet_pagues', $pagues, $parsed_args );
Changuelog
| Versionen | Description |
|---|---|
| 2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.