首页 WordPress函数大全 is_post_type_archive()

is_post_type_archive()

2020-05-02 / 1918阅 / 悠然

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

is_post_type_archive( string|string[] $post_types = '' )

Determines whether the query is for an existing post type archive page.

描述

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

参数

$post_types

(string|string[])
(Optional)
Post type or array of posts types to check against.

Default value: ''

返回

(bool)

大家谈论
    我的见解