cnp/wp-queried-object-parser
Composer 安装命令:
composer require cnp/wp-queried-object-parser
包简介
Provides shorthand access to a standard description of the WordPress object being requested.
README 文档
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 -> ''
]
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-03