- Timestamp:
- 11/20/2021 02:21:15 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r51795 r52227 900 900 * @since 3.1.0 901 901 * 902 * @param string[] $actions An array of plugin action links. By default this can include 'activate',903 * ' deactivate', and 'delete'.902 * @param string[] $actions An array of plugin action links. By default this can include 903 * 'activate', 'deactivate', and 'delete'. 904 904 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 905 * @param array $plugin_data An array of plugin data. See `get_plugin_data()`. 906 * @param string $context The plugin context. By default this can include 'all', 'active', 'inactive', 907 * 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'. 905 * @param array $plugin_data An array of plugin data. See `get_plugin_data()` 906 * and the {@see 'plugin_row_meta'} filter for the list 907 * of possible values. 908 * @param string $context The plugin context. By default this can include 'all', 909 * 'active', 'inactive', 'recently_activated', 'upgrade', 910 * 'mustuse', 'dropins', and 'search'. 908 911 */ 909 912 $actions = apply_filters( 'network_admin_plugin_action_links', $actions, $plugin_file, $plugin_data, $context ); … … 917 920 * @since 3.1.0 918 921 * 919 * @param string[] $actions An array of plugin action links. By default this can include 'activate',920 * ' deactivate', and 'delete'.922 * @param string[] $actions An array of plugin action links. By default this can include 923 * 'activate', 'deactivate', and 'delete'. 921 924 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 922 * @param array $plugin_data An array of plugin data. See `get_plugin_data()`. 923 * @param string $context The plugin context. By default this can include 'all', 'active', 'inactive', 924 * 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'. 925 * @param array $plugin_data An array of plugin data. See `get_plugin_data()` 926 * and the {@see 'plugin_row_meta'} filter for the list 927 * of possible values. 928 * @param string $context The plugin context. By default this can include 'all', 929 * 'active', 'inactive', 'recently_activated', 'upgrade', 930 * 'mustuse', 'dropins', and 'search'. 925 931 */ 926 932 $actions = apply_filters( "network_admin_plugin_action_links_{$plugin_file}", $actions, $plugin_file, $plugin_data, $context ); … … 935 941 * @since 4.9.0 The 'Edit' link was removed from the list of action links. 936 942 * 937 * @param string[] $actions An array of plugin action links. By default this can include 'activate',938 * ' deactivate', and 'delete'. With Multisite active this can also include939 * 'network_active' and 'network_only' items.943 * @param string[] $actions An array of plugin action links. By default this can include 944 * 'activate', 'deactivate', and 'delete'. With Multisite active 945 * this can also include 'network_active' and 'network_only' items. 940 946 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 941 * @param array $plugin_data An array of plugin data. See `get_plugin_data()`. 942 * @param string $context The plugin context. By default this can include 'all', 'active', 'inactive', 943 * 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'. 947 * @param array $plugin_data An array of plugin data. See `get_plugin_data()` 948 * and the {@see 'plugin_row_meta'} filter for the list 949 * of possible values. 950 * @param string $context The plugin context. By default this can include 'all', 951 * 'active', 'inactive', 'recently_activated', 'upgrade', 952 * 'mustuse', 'dropins', and 'search'. 944 953 */ 945 954 $actions = apply_filters( 'plugin_action_links', $actions, $plugin_file, $plugin_data, $context ); … … 954 963 * @since 4.9.0 The 'Edit' link was removed from the list of action links. 955 964 * 956 * @param string[] $actions An array of plugin action links. By default this can include 'activate',957 * ' deactivate', and 'delete'. With Multisite active this can also include958 * 'network_active' and 'network_only' items.965 * @param string[] $actions An array of plugin action links. By default this can include 966 * 'activate', 'deactivate', and 'delete'. With Multisite active 967 * this can also include 'network_active' and 'network_only' items. 959 968 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 960 * @param array $plugin_data An array of plugin data. See `get_plugin_data()`. 961 * @param string $context The plugin context. By default this can include 'all', 'active', 'inactive', 962 * 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'. 969 * @param array $plugin_data An array of plugin data. See `get_plugin_data()` 970 * and the {@see 'plugin_row_meta'} filter for the list 971 * of possible values. 972 * @param string $context The plugin context. By default this can include 'all', 973 * 'active', 'inactive', 'recently_activated', 'upgrade', 974 * 'mustuse', 'dropins', and 'search'. 963 975 */ 964 976 $actions = apply_filters( "plugin_action_links_{$plugin_file}", $actions, $plugin_file, $plugin_data, $context ); … … 1086 1098 * the version, author, author URI, and plugin URI. 1087 1099 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 1088 * @param array $plugin_data An array of plugin data. 1100 * @param array $plugin_data { 1101 * An array of plugin data. 1102 * 1103 * @type string $id Plugin ID, e.g. `w.org/plugins/[plugin-name]`. 1104 * @type string $slug Plugin slug. 1105 * @type string $plugin Plugin basename. 1106 * @type string $new_version New plugin version. 1107 * @type string $url Plugin URL. 1108 * @type string $package Plugin update package URL. 1109 * @type string[] $icons An array of plugin icon URLs. 1110 * @type string[] $banners An array of plugin banner URLs. 1111 * @type string[] $banners_rtl An array of plugin RTL banner URLs. 1112 * @type string $requires The version of WordPress which the plugin requires. 1113 * @type string $tested The version of WordPress the plugin is tested against. 1114 * @type string $requires_php The version of PHP which the plugin requires. 1115 * @type string $upgrade_notice The upgrade notice for the new plugin version. 1116 * @type bool $update-supported Whether the plugin supports updates. 1117 * @type string $Name The human-readable name of the plugin. 1118 * @type string $PluginURI Plugin URI. 1119 * @type string $Version Plugin version. 1120 * @type string $Description Plugin description. 1121 * @type string $Author Plugin author. 1122 * @type string $AuthorURI Plugin author URI. 1123 * @type string $TextDomain Plugin textdomain. 1124 * @type string $DomainPath Relative path to the plugin's .mo file(s). 1125 * @type bool $Network Whether the plugin can only be activated network-wide. 1126 * @type string $RequiresWP The version of WordPress which the plugin requires. 1127 * @type string $RequiresPHP The version of PHP which the plugin requires. 1128 * @type string $UpdateURI ID of the plugin for update purposes, should be a URI. 1129 * @type string $Title The human-readable title of the plugin. 1130 * @type string $AuthorName Plugin author's name. 1131 * @type bool $update Whether there's an available update. Default null. 1132 * } 1089 1133 * @param string $status Status filter currently applied to the plugin list. Possible 1090 1134 * values are: 'all', 'active', 'inactive', 'recently_activated', … … 1182 1226 * @since 5.5.0 1183 1227 * 1184 * @param string $html The HTML of the plugin's auto-update column content, including 1185 * toggle auto-update action links and time to next update. 1228 * @param string $html The HTML of the plugin's auto-update column content, 1229 * including toggle auto-update action links and 1230 * time to next update. 1186 1231 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 1187 * @param array $plugin_data An array of plugin data. 1232 * @param array $plugin_data An array of plugin data. See `get_plugin_data()` 1233 * and the {@see 'plugin_row_meta'} filter for the list 1234 * of possible values. 1188 1235 */ 1189 1236 echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data ); … … 1205 1252 * @param string $column_name Name of the column. 1206 1253 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 1207 * @param array $plugin_data An array of plugin data. 1254 * @param array $plugin_data An array of plugin data. See `get_plugin_data()` 1255 * and the {@see 'plugin_row_meta'} filter for the list 1256 * of possible values. 1208 1257 */ 1209 1258 do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data ); … … 1275 1324 * 1276 1325 * @since 2.3.0 1277 * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled' to possible values for `$status`. 1326 * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled' 1327 * to possible values for `$status`. 1278 1328 * 1279 1329 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 1280 * @param array $plugin_data An array of plugin data. 1281 * @param string $status Status filter currently applied to the plugin list. Possible 1282 * values are: 'all', 'active', 'inactive', 'recently_activated', 1283 * 'upgrade', 'mustuse', 'dropins', 'search', 'paused', 1284 * 'auto-update-enabled', 'auto-update-disabled'. 1330 * @param array $plugin_data An array of plugin data. See `get_plugin_data()` 1331 * and the {@see 'plugin_row_meta'} filter for the list 1332 * of possible values. 1333 * @param string $status Status filter currently applied to the plugin list. 1334 * Possible values are: 'all', 'active', 'inactive', 1335 * 'recently_activated', 'upgrade', 'mustuse', 'dropins', 1336 * 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'. 1285 1337 */ 1286 1338 do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status ); … … 1293 1345 * 1294 1346 * @since 2.7.0 1295 * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled' to possible values for `$status`. 1347 * @since 5.5.0 Added 'auto-update-enabled' and 'auto-update-disabled' 1348 * to possible values for `$status`. 1296 1349 * 1297 1350 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 1298 * @param array $plugin_data An array of plugin data. 1299 * @param string $status Status filter currently applied to the plugin list. Possible 1300 * values are: 'all', 'active', 'inactive', 'recently_activated', 1301 * 'upgrade', 'mustuse', 'dropins', 'search', 'paused', 1302 * 'auto-update-enabled', 'auto-update-disabled'. 1351 * @param array $plugin_data An array of plugin data. See `get_plugin_data()` 1352 * and the {@see 'plugin_row_meta'} filter for the list 1353 * of possible values. 1354 * @param string $status Status filter currently applied to the plugin list. 1355 * Possible values are: 'all', 'active', 'inactive', 1356 * 'recently_activated', 'upgrade', 'mustuse', 'dropins', 1357 * 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'. 1303 1358 */ 1304 1359 do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );
Note: See TracChangeset
for help on using the changeset viewer.