array_values( array_filter( scandir( WP_PLUGIN_DIR ), function ( $name ) { return strpos( $name, '.' ) !== 0 && $name !== 'index.php'; } ) ), 'installedThemes' => array_values( array_filter( scandir( WP_CONTENT_DIR . '/themes' ), function ( $name ) { return strpos( $name, '.' ) !== 0 && $name !== 'index.php'; } ) ), ] ); } ); add_action( 'all_admin_notices', function () { echo '
'; } );