cnp/wp-queried-object-parser

Provides shorthand access to a standard description of the WordPress object being requested.

0.4.0 2016-03-22 20:05 UTC

This package is not auto-updated.

Last update: 2024-12-21 20:30:25 UTC


README

Provides shorthand access to a standard description of the WordPress object being requested.

Filter

You can filter the output with the hook cnp_queried_object_filter like so:

add_filter( 'cnp_queried_object_filter', 'function_to_filter_output' );

Usage

$object = cnp_parse_queried_object();

Return Values

(stdClass) [
    type      -> '',
    wp_object -> '',
    title     -> '',
    slug      -> '',
    ID        -> 0,
    view      -> ''
]