# gutenify/1.0.2/inc/class-ajax.php

Gutenify – Visual Site Builder Blocks &amp; Starter Templates, version 1.0.2. 29 lines.

- Page: https://pluginprobe.com/plugins/gutenify/1.0.2/code/inc/class-ajax.php
- Raw: https://pluginprobe.com/plugins/gutenify/1.0.2/raw/inc/class-ajax.php
- Modified: 2022-03-25T16:22:26+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/gutenify/1.0.2/code/inc/class-ajax.php#L10-L20`.

```php
<?php
/**
 * Ajax
 *
 * @package Gutenify
 */

/**
 * Gutenify_Ajax
 */
class Gutenify_Ajax {
    /**
     * Gutenify_Ajax constructor.
     */
    public function __construct() {
        // Get templates.
        add_action( 'wp_ajax_gutenify_get_templates', array( $this, 'get_templates' ) );
    }

    /**
     * Get templates.
     */
    public function get_templates() {
        echo "test";
    }
}

new Gutenify_Ajax();

```
