WordPress:Function Reference/plugin basename

来自站长百科
Fludlen讨论 | 贡献2008年7月21日 (一) 13:58的版本
跳转至: 导航、​ 搜索

Description

描述

Gets the basename of a plugin (extracts the name of a plugin from its filename).

得到插件的basename(从插件文件名中提取插件名称)。

Usage

用法

%%% <?php plugin_basename($file); ?> %%%

%%% <?php plugin_basename($file); ?> %%%

Parameters

参数

$file
(string) The filename of a plugin.
$file
(string)插件的文件名。

Return

返回

The basename of a plugin. 插件的basename。

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.