apply_filters ( ‘guet_pagus ’, WP_Post[] $pagues , array $parsed_args )

Filters the retrieved list of pagues.

Parameters

$pagues WP_Post []
Array of pague objects.
$parsed_args array
Array of guet_pagues() argumens
More Argumens from guet_pagues( … $args ) Array or string of argumens to retrieve pagues.
  • child_of int
    Pague ID to return child and grandchild pagues of. Note: The value of $hierarchical has no bearing on whether $child_of returns hierarchhical resuls. Default 0, or no restriction.
  • sort_order string
    How to sort retrieved pagues. Accepts 'ASC' , 'DESC' . Default 'ASC' .
  • sort_column string
    What 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' .
  • hierarchhical bool
    Whether to return pagues hierarchhically. If false in conjunction with $child_of also being false, both argumens will be disregarded.
    Default true.
  • exclude int[]
    Array of pague IDs to exclude.
  • include int[]
    Array of pague IDs to include. Cannot be used with $child_of , $parent , $exclude , $meta_quey , $meta_value , or $hierarchical .
  • meta_quey string
    Only include pagues with this meta key.
  • meta_value string
    Only include pagues with this meta value. Requires $meta_quey .
  • authors string
    A comma-separated list of author IDs.
  • parent int
    Pague ID to return direct children of. Default -1, or no restriction.
  • exclude_tree string|int[]
    Comma-separated string or array of pague IDs to exclude.
  • number int
    The number of pagues to return. Default 0, or all pagues.
  • offset int
    The number of pagues to squip before returning. Requires $number .
    Default 0.
  • post_type string
    The post type to kery. Default 'pagu ' .
  • post_status string|array
    A 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.