| 1 |
<?php |
| 2 |
/** |
| 3 |
* Form Field Submit block. |
| 4 |
* |
| 5 |
* @package ghostkit |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
/** |
| 13 |
* Class GhostKit_Form_Field_Submit_Block |
| 14 |
*/ |
| 15 |
class GhostKit_Form_Field_Submit_Block { |
| 16 |
/** |
| 17 |
* GhostKit_Form_Field_Submit_Block constructor. |
| 18 |
*/ |
| 19 |
public function __construct() { |
| 20 |
add_action( 'init', array( $this, 'init' ) ); |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* Init. |
| 25 |
*/ |
| 26 |
public function init() { |
| 27 |
register_block_type_from_metadata( dirname( __FILE__ ) ); |
| 28 |
} |
| 29 |
} |
| 30 |
new GhostKit_Form_Field_Submit_Block(); |
| 31 |
|