# speechkit/4.2.4/src/Component/Post/ErrorNotice/ErrorNotice.php

BeyondWords – AI audio for publishers, version 4.2.4. 46 lines.

- Page: https://pluginprobe.com/plugins/speechkit/4.2.4/code/src/Component/Post/ErrorNotice/ErrorNotice.php
- Raw: https://pluginprobe.com/plugins/speechkit/4.2.4/raw/src/Component/Post/ErrorNotice/ErrorNotice.php
- Modified: 2023-11-15T21:11:02+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/speechkit/4.2.4/code/src/Component/Post/ErrorNotice/ErrorNotice.php#L10-L20`.

```php
<?php

declare(strict_types=1);

/**
 * BeyondWords Post ErrorNotice.
 *
 * @package Beyondwords\Wordpress
 * @author  Stuart McAlpine <stu@beyondwords.io>
 * @since   3.0.0
 */

namespace Beyondwords\Wordpress\Component\Post\ErrorNotice;

use Beyondwords\Wordpress\Core\CoreUtils;

/**
 * ErrorNotice setup
 *
 * @since 3.0.0
 */
class ErrorNotice
{
    /**
     * Constructor
     */
    public function __construct()
    {
        add_action('enqueue_block_assets', array($this, 'enqueueBlockAssets'));
    }

    public function enqueueBlockAssets()
    {
        // Only enqueue for Gutenberg screens
        if (CoreUtils::isGutenbergPage()) {
            // Register the Block Editor "Error Notice" CSS
            wp_enqueue_style(
                'beyondwords-ErrorNotice',
                BEYONDWORDS__PLUGIN_URI . 'src/Component/Post/ErrorNotice/error-notice.css',
                array(),
                BEYONDWORDS__PLUGIN_VERSION
            );
        }
    }
}

```
