get_file_description

Advertisement

Summery Summery

Get the description for standard WordPress theme files and other various standard WordPress files

Syntax Syntax

get_file_description( string $file )

Parameters Parameters

$file

(string) (Required) Filesystem path or filename

Return Return

(string) Description of file from $wp_file_descriptions or basename of $file if description doesn't exist. Appends 'Page Template' to basename of $file if the file is a page template

Source Source

File: wp-admin/includes/file.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.