all_plugins

all_plugins

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('all_plugins') is found 3 times:

  • /wp-admin/includes/ajax-actions.php line 5570
    			}
    
    			$option = 'auto_update_plugins';
    			/** This filter is documented in wp-admin/includes/class-wp-plugins-list-table.php */
    			$all_items = apply_filters( 'all_plugins', get_plugins() );
    			break;
    		case 'theme':
    			if ( ! current_user_can( 'update_themes' ) ) {
    				$error_message = __( 'Sorry, you are not allowed to modify themes.' );
    				wp_send_json_error( array( 'error' => $error_message ) );
    			}
    
  • /wp-admin/includes/class-wp-plugins-list-table.php line 105
    		 * @see get_plugins()
    		 *
    		 * @param array $all_plugins An array of plugins to display in the list table.
    		 */
    		$all_plugins = apply_filters( 'all_plugins', get_plugins() );
    
    		$plugins = array(
    			'all'                => $all_plugins,
    			'search'             => array(),
    			'active'             => array(),
    			'inactive'           => array(),
    
  • /wp-admin/plugins.php line 527
    				$redirect     = add_query_arg( $query_args, $redirect );
    			}
    
    			/** This filter is documented in wp-admin/includes/class-wp-plugins-list-table.php */
    			$all_items = apply_filters( 'all_plugins', get_plugins() );
    
    			// Remove plugins that don't exist or have been deleted since the option was last updated.
    			$auto_updates = array_intersect( $auto_updates, array_keys( $all_items ) );
    
    			update_site_option( 'auto_update_plugins', $auto_updates );
    
    

See this hook used in plugins: