page_uri_index()获取所有页面的别名和id

目录

描述

译文

为页面URI检索所有页面与附件。

检索以页面为父级的文章的附件。

原文

This page is marked as needing to be renamed. It does not meet current guidelines or has some other issue. A Codex administrator will attend to this as soon as possible.

Note: This is not a directly callable function, it is a method of the WP_Rewrite class. This page should be moved from Function Reference to Rewrite API


Retrieve all pages and attachments for pages URIs.

The attachments are for those that have pages as parents and will be retrieved.

page_uri_index() 描述

用法

<?php $wp_rewrite->page_uri_index() ?>

page_uri_index() 用法

参数

None

page_uri_index() 参数

返回值

(array) 

Array of page URIs as first element and attachment URIs as second element.

page_uri_index() 返回值

注意

page_uri_index() 注意

历史

添加于 版本: 2.5.0

page_uri_index() 历史

源文件

page_uri_index() 函数的代码位于 wp-includes/rewrite.php.

page_uri_index() 源文件

相关