# ghostkit/1.6.3/blocks/custom-css/block.php

Block Animations, Motion &amp; Scroll Effects – Ghost Kit, version 1.6.3. 35 lines.

- Page: https://pluginprobe.com/plugins/ghostkit/1.6.3/code/blocks/custom-css/block.php
- Raw: https://pluginprobe.com/plugins/ghostkit/1.6.3/raw/blocks/custom-css/block.php
- Modified: 2018-12-06T21:45:38+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/ghostkit/1.6.3/code/blocks/custom-css/block.php#L10-L20`.

```php
<?php
/**
 * Custom css block.
 *
 * @package ghostkit
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Class GhostKit_Custom_CSS_Block
 */
class GhostKit_Custom_CSS_Block {
    /**
     * GhostKit_Custom_CSS_Block constructor.
     */
    public function __construct() {
        add_action( 'init', array( $this, 'register_meta' ) );
    }

    /**
     * Register meta.
     */
    public function register_meta() {
        register_meta( 'post', 'ghostkit_custom_css', array(
            'show_in_rest' => true,
            'single'       => true,
            'type'         => 'string',
        ) );
    }
}
new GhostKit_Custom_CSS_Block();

```
