常用函数-is_local_attachment()

0条评论

常用函数-is_local_attachment()

说明

检查附件URI是否本地URI以及是否确实是附件类型

用法

<?php is_local_attachment( $url ) ?>

参数

$url

(字符)(必需)将被检查的URL

默认值: None

返回的值

(布尔值)

成功返回true,失败返回false

示例

注释

修改记录

自2.0.0版本后

源文件

is_local_attachment() 位于 wp-includes/post.php中。

相关资源

is_home(), is_front_page(), is_search(), is_404(), is_singular(), is_page(), is_attachment(), is_local_attachment(), is_single(), is_sticky(), is_archive(), is_category(), is_tag(), is_author(), is_date(), is_year(), is_month(), is_day(), is_time(), is_admin(), is_preview(), is_paged(), is_page_template(), is_plugin_page(), is_new_day(), is_feed(), is_trackback(), is_comments_popup(), comments_open(), pings_open(), is_taxonomy(), is_taxonomy_hierarchical()

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.