pre_current_active_plugins хук-событиеWP 3.0.0

Fires before the plugins list table is rendered.

This hook also fires before the plugins list table is rendered in the Network Admin.

Please note: The 'active' portion of the hook name does not refer to whether the current view is for active plugins, but rather all plugins actively-installed.

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

add_action( 'pre_current_active_plugins', 'wp_kama_pre_current_active_plugins_action' );

/**
 * Function for `pre_current_active_plugins` action-hook.
 * 
 * @param array[] $plugins_all An array of arrays containing information on all installed plugins.
 *
 * @return void
 */
function wp_kama_pre_current_active_plugins_action( $plugins_all ){

	// action...
}
$plugins_all(array[])
An array of arrays containing information on all installed plugins.

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

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

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

В файле: /wp-admin/plugins.php
pre_current_active_plugins
wp-admin/plugins.php 782
do_action( 'pre_current_active_plugins', $plugins['all'] );

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

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