首页 WordPress函数大全 is_local_attachment()

is_local_attachment()

2020-05-02 / 5577阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

is_local_attachment( string $url )

Determines whether an attachment URI is local and really an attachment.

描述

For more information> Conditional Tags article in the Theme Developer Handbook.

参数

$url

(string)
(Required)
URL to check

返回

(bool) True on success, false on failure.

大家谈论
    我的见解