# windpress/3.0.11/src/Integration/GreenShift/Compile.php

WindPress – Tailwind CSS integration for WordPress, version 3.0.11. 35 lines.

- Page: https://pluginprobe.com/plugins/windpress/3.0.11/code/src/Integration/GreenShift/Compile.php
- Raw: https://pluginprobe.com/plugins/windpress/3.0.11/raw/src/Integration/GreenShift/Compile.php
- Modified: 2024-09-07T03:14:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/windpress/3.0.11/code/src/Integration/GreenShift/Compile.php#L10-L20`.

```php
<?php

/*
 * This file is part of the WindPress package.
 *
 * (c) Joshua Gugun Siagian <suabahasa@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
declare (strict_types=1);
namespace WindPress\WindPress\Integration\GreenShift;

/**
 * @author Joshua Gugun Siagian <suabahasa@gmail.com>
 */
class Compile
{
    public function __invoke()
    {
        if (!\defined('GREENSHIFT_DIR_PATH')) {
            return;
        }
        \add_filter('f!windpress/integration/gutenberg/compile:get_contents.post_types', fn(array $post_types): array => $this->get_post_types($post_types));
    }
    /**
     * @param array $post_types
     */
    public function get_post_types($post_types) : array
    {
        $post_types[] = 'wp_block';
        return $post_types;
    }
}

```
