plugin_install_action_links хук-фильтрWP 2.7.0

Filters the install action links for a plugin.

Использование

add_filter( 'plugin_install_action_links', 'wp_kama_plugin_install_action_links_filter', 10, 2 );

/**
 * Function for `plugin_install_action_links` filter-hook.
 * 
 * @param string[] $action_links An array of plugin action links.
 * @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_action_links_filter( $action_links, $plugin ){

	// filter...
	return $action_links;
}
$action_links(string[])
An array of plugin action links.
По умолчанию: are links to Details and Install Now
$plugin(массив)
An array of plugin data. See {@see plugins_api()} for the list of possible values.

Список изменений

С версии 2.7.0 Введена.

Где вызывается хук

WP_Plugin_Install_List_Table::display_rows()
plugin_install_action_links
wp-admin/includes/class-wp-plugin-install-list-table.php 680
$action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );

Где используется хук в WordPress

Использование не найдено.