get_active_items() ); } private function get_active_items() { $items = array(); foreach ( get_plugins() as $key => $plugin ) { if ( is_plugin_active( $key ) ) { $items['plugin'][] = $key; } } $items['theme'][] = wp_get_theme()->get_template(); return $items; } }