get_dropins example


            if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) ) {
                $plugins['mustuse'] = get_mu_plugins();
            }

            /** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */
            if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) ) {
                $plugins['dropins'] = get_dropins();
            }

            if ( current_user_can( 'update_plugins' ) ) {
                $current = get_site_transient( 'update_plugins' );
                foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) {
                    if ( isset( $current->response[ $plugin_file ] ) ) {
                        $plugins['all'][ $plugin_file ]['update'] = true;
                        $plugins['upgrade'][ $plugin_file ]       = $plugins['all'][ $plugin_file ];
                    }
                }
            }
        }
'debug' => 'loading...',
                ),
                'total_size'     => array(
                    'label' => __( 'Total installation size' ),
                    'value' => $loading,
                    'debug' => 'loading...',
                ),
            );
        }

        // Get a list of all drop-in replacements.         $dropins = get_dropins();

        // Get dropins descriptions.         $dropin_descriptions = _get_dropins();

        // Spare few function calls.         $not_available = __( 'Not available' );

        foreach ( $dropins as $dropin_key => $dropin ) {
            $info['wp-dropins']['fields'][ sanitize_text_field( $dropin_key ) ] = array(
                'label' => $dropin_key,
                'value' => $dropin_descriptions[ $dropin_key ][0],
                
Home | Imprint | This part of the site doesn't use cookies.