首页 WordPress函数大全 get_query_var()

get_query_var()

2020-05-01 / 5342阅 / 悠然

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

get_query_var( string $var, mixed $default = '' )

Retrieve variable in the WP_Query class.

描述

参数

$var

(string)
(Required)
The variable key to retrieve.

$default

(mixed)
(Optional)
Value to return if the query variable is not set.

Default value: ''

返回

(mixed) Contents of the query variable.

大家谈论
    我的见解