wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



log_query_custom_data › Filtr WordPress Hooks

Od5.3.0
Przestarzałyn/a
› apply_filters( 'log_query_custom_data', $query_data, $query, $query_time, $query_callstack, $query_start )
Parametry: (5)
  • () query_data Custom query data.
    Wymagane: Tak
  • () query The query's SQL.
    Wymagane: Tak
  • () query_time Total time spent on the query, in seconds.
    Wymagane: Tak
  • () query_callstack Comma-separated list of the calling functions.
    Wymagane: Tak
  • () query_start Unix timestamp of the time at the start of the query.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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.




Źródło

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