tsu-financial-progress-block.php 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Plugin Name: Tsu Financial Progress Block
  4. * Description: Example block scaffolded with Create Block tool.
  5. * Requires at least: 6.1
  6. * Requires PHP: 7.0
  7. * Version: 0.1.0
  8. * Author: The WordPress Contributors
  9. * License: GPL-2.0-or-later
  10. * License URI: https://www.gnu.org/licenses/gpl-2.0.html
  11. * Text Domain: tsu-financial-progress-block
  12. *
  13. * @package create-block
  14. */
  15. if ( ! defined( 'ABSPATH' ) ) {
  16. exit; // Exit if accessed directly.
  17. }
  18. /**
  19. * Registers the block using the metadata loaded from the `block.json` file.
  20. * Behind the scenes, it registers also all assets so they can be enqueued
  21. * through the block editor in the corresponding context.
  22. *
  23. * @see https://developer.wordpress.org/reference/functions/register_block_type/
  24. */
  25. function tsu_financial_progress_block_tsu_financial_progress_block_block_init() {
  26. register_block_type( __DIR__ . '/build' );
  27. }
  28. add_action( 'init', 'tsu_financial_progress_block_tsu_financial_progress_block_block_init' );