# jetformbuilder/1.0.3/includes/shortcodes/form-shortcode.php

JetFormBuilder — Dynamic Blocks Form Builder, version 1.0.3. 32 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/1.0.3/code/includes/shortcodes/form-shortcode.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/1.0.3/raw/includes/shortcodes/form-shortcode.php
- Modified: 2021-02-23T13:35:24+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/jetformbuilder/1.0.3/code/includes/shortcodes/form-shortcode.php#L10-L20`.

```php
<?php


namespace Jet_Form_Builder\Shortcodes;


class Form_Shortcode extends Shortcode {

	/**
	 * @return mixed
	 */
	public function get_name() {
		return 'jet_fb_form';
	}

	public function default_args() {
		return $this->prepare_attributes(
			jet_form_builder()->blocks->get_form_class()->get_attributes()
		);
	}

	/**
	 * @param $settings
	 *
	 * @return mixed
	 */
	public function generate( $settings ) {
		return jet_fb_render_form( $settings );
	}


}
```
