plugin_install_description filter-hookWP 6.0.0

Filters the plugin card description on the Add Plugins screen.

Usage

add_filter( 'plugin_install_description', 'wp_kama_plugin_install_description_filter', 10, 2 );

/**
 * Function for `plugin_install_description` filter-hook.
 * 
 * @param string $description Plugin card description.
 * @param array  $plugin      An array of plugin data. See {@see plugins_api()} for the list of possible values.
 *
 * @return string
 */
function wp_kama_plugin_install_description_filter( $description, $plugin ){

	// filter...
	return $description;
}
$description(string)
Plugin card description.
$plugin(array)
An array of plugin data. See {@see plugins_api()} for the list of possible values.

Changelog

Since 6.0.0 Introduced.

Where the hook is called

WP_Plugin_Install_List_Table::display_rows()
plugin_install_description
wp-admin/includes/class-wp-plugin-install-list-table.php 527
$description = apply_filters( 'plugin_install_description', $description, $plugin );

Where the hook is used in WordPress

Usage not found.