cnp/wp-queried-object-parser

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

Maintainers

Package info

github.com/Clark-Nikdel-Powell/WP-Queried-Object-Parser

pkg:composer/cnp/wp-queried-object-parser

Statistics

Installs: 56

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.4.0 2016-03-22 20:05 UTC

This package is not auto-updated.

Last update: 2026-03-01 02:59:16 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      -> ''
]