cnp / wp-queried-object-parser
Provides shorthand access to a standard description of the WordPress object being requested.
Package info
github.com/Clark-Nikdel-Powell/WP-Queried-Object-Parser
pkg:composer/cnp/wp-queried-object-parser
0.4.0
2016-03-22 20:05 UTC
Requires
- php: >=5.3.3
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 -> ''
]