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
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2024-10-26 19:26:35 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 -> '' ]