Last active
July 8, 2020 17:37
-
-
Save ravewebdev/2acb6966037f6d7e309f7eb66f93d079 to your computer and use it in GitHub Desktop.
1.2.1. Set up block to render with PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
register_block_type( 'rave/initiative-tracker', array( | |
'editor_script' => 'initiative-tracker-editor-script', | |
'editor_style' => 'initiative-tracker-editor-style', | |
'style' => 'initiative-tracker-style', | |
'render_callback' => __NAMESPACE__ . '\render_block', | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment