WPDev.one
Core Function
View Source on Trac ↗

_get_plugin_data_markup_translate()

_get_plugin_data_markup_translate( mixed $plugin_file, mixed $plugin_data, mixed $markup = true, mixed $translate = true )

Sanitizes plugin data, optionally adds markup, optionally translates.

Parameters 3 required

Name / Type Description
$plugin_file
string

Path to the main plugin file.

Required
$plugin_data
array

An array of plugin data. See get_plugin_data().

Required
bool

$markup Optional. If the returned data should have HTML markup applied. Default true.

Required
$translate
bool

Optional. If the returned data should be translated. Default true.

Return Value

(array)
array Plugin data. Values will be empty if not supplied by the plugin. See get_plugin_data() for the list of possible values.

Function Information

Since Version
2.7.0
Source File
wp-admin/includes/plugin.php
Advertisement