WP HOOKS
filtrdynamicznyod 3.7.0

install_plugins_table_api_args_{$tab}

Args 1Plik wp-admin/includes/class-wp-plugin-install-list-table.php

Opis — z kodu źródłowego

Filters API request arguments for each Add Plugins screen tab.

The dynamic portion of the hook name, $tab, refers to the plugin install tabs. Possible hook names include:

  • install_plugins_table_api_args_favorites
  • install_plugins_table_api_args_featured
  • install_plugins_table_api_args_popular
  • install_plugins_table_api_args_recommended
  • install_plugins_table_api_args_upload
  • install_plugins_table_api_args_search
  • install_plugins_table_api_args_beta

Hook dynamiczny — możliwe nazwy

install_plugins_table_api_args_betainstall_plugins_table_api_args_favoritesinstall_plugins_table_api_args_featuredinstall_plugins_table_api_args_popularinstall_plugins_table_api_args_recommendedinstall_plugins_table_api_args_searchinstall_plugins_table_api_args_upload

Parametry

ParametrTypOpis
$argsarray | falsePlugin install API arguments.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'install_plugins_table_api_args_{$tab}', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii