wpseek.com
WordPress开发者和主题制作者的搜索引擎



log_query_custom_data › WordPress过滤钩子

Since5.3.0
已弃用n/a
› apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start )
参数: (5)
  • () query_data Custom query data.
    Required: Yes
  • () query The query's SQL.
    Required: Yes
  • () query_time Total time spent on the query, in seconds.
    Required: Yes
  • () query_callstack Comma-separated list of the calling functions.
    Required: Yes
  • () query_start Unix timestamp of the time at the start of the query.
    Required: Yes
定义在:
文档:

Filters the custom data to log alongside a query.

Caution should be used when modifying any of this data, it is recommended that any additional information you need to store about a query be added as a new associative array element.




源码

$query_data = apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start );