fewbricks\fewbricks::add_fewbricks_hidden_activated_check PHP Method

add_fewbricks_hidden_activated_check() private static method

    private static function add_fewbricks_hidden_activated_check()
    {
        // ... but let's also check that acf-fewbricks-hidden really have been activated.
        add_action('admin_init', function () {
            if (!is_plugin_active('acf-fewbricks-hidden/acf-fewbricks-hidden.php')) {
                add_action('admin_notices', function () {
                    echo self::$messages['fewbricks_hidden_missing'];
                });
            }
        });
    }