# gutenify/trunk/core/dist/blocks/search-toggle/index.php

Gutenify – Visual Site Builder Blocks &amp; Starter Templates, version trunk. 30 lines.

- Page: https://pluginprobe.com/plugins/gutenify/trunk/code/core/dist/blocks/search-toggle/index.php
- Raw: https://pluginprobe.com/plugins/gutenify/trunk/raw/core/dist/blocks/search-toggle/index.php
- Modified: 2026-05-19T11:16:58+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/trunk/code/core/dist/blocks/search-toggle/index.php#L10-L20`.

```php
<?php
/**
 * Search Toggle Block
 *
 * @package gutenify
 */

namespace gutenify\Blocks\SearchToggle;

defined( 'ABSPATH' ) || exit;

class SearchToggle {

	/**
	 * Init function.
	 */
	public static function init() {
		add_action( 'init', array( __CLASS__, 'register_block' ) );
	}

	/**
	 * Register the block.
	 */
	public static function register_block() {
		register_block_type( __DIR__ );
	}
}

SearchToggle::init();

```
