wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_skip_paused_plugins › WordPress Function
Since5.2.0
Deprecatedn/a
› wp_skip_paused_plugins ( $plugins )
Parameters: |
|
Returns: |
|
Defined at: |
|
Codex: |
Filters a given list of plugins, removing any paused plugins from it.
Related Functions: wp_paused_plugins, wp_skip_paused_themes, wp_update_plugins, wp_dashboard_plugins, wp_parse_slug_list
Source
function wp_skip_paused_plugins( array $plugins ) { $paused_plugins = wp_paused_plugins()->get_all(); if ( empty( $paused_plugins ) ) { return $plugins; } foreach ( $plugins as $index => $plugin ) { list( $plugin ) = explode( '/', plugin_basename( $plugin ) ); if ( array_key_exists( $plugin, $paused_plugins ) ) { unset( $plugins[ $index ] ); // Store list of paused plugins for displaying an admin notice. $GLOBALS['_paused_plugins'][ $plugin ] = $paused_plugins[ $plugin ]; } } return $plugins; }