cnp / wp-queried-object-parser
Provides shorthand access to a standard description of the WordPress object being requested.
Installs: 55
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/cnp/wp-queried-object-parser
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2025-10-26 01:23:15 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 -> ''
]