2020-05-01 / 3435阅 / 悠然
Retrieve metadata from a file.
Searches for metadata in the first 8 KB of a file, such as a plugin or theme. Each piece of metadata must be>
(string)
(Required)
Absolute path to the file.
(array)
(Required)
List of headers, in the format array( 'HeaderKey' => 'Header Name' ).
(string)
(Optional)
If specified adds filter hook 'extra_$context_headers'.
Default value: ''
(string[]) Array of file header values keyed by header name.