fewbricks\fewbricks::fewbricks_template_dir_exists PHP Method

fewbricks_template_dir_exists() private static method

private static fewbricks_template_dir_exists ( ) : mixed
return mixed
    private static function fewbricks_template_dir_exists()
    {
        $fewbricks_template_dir_exists = file_exists(get_stylesheet_directory() . '/fewbricks');
        if (!$fewbricks_template_dir_exists) {
            // Make sure that the fewbricks/fewbricks-directory has been moved to the template directory.
            add_action('admin_notices', function () {
                echo self::$messages['fewbricks_template_dir_missing'];
            });
        }
        return $fewbricks_template_dir_exists;
    }