首页 WordPress函数大全 is_page()

is_page()

2020-05-02 / 3566阅 / 悠然

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

is_page( int|string|int[]|string[] $page = '' )

Determines whether the query is for an existing single page.

描述

If the $page parameter is specified, this function will additionally check if the query is for> Conditional Tags article in the Theme Developer Handbook.

See also See also

  • is_single()
  • is_singular()

Top ↑

参数

$page

(int|string|int[]|string[])
(Optional)
Page ID, title, slug, or array of such to check against.

Default value: ''

返回

(bool) Whether the query is for an existing single page.

大家谈论
    我的见解