3, 'render_callback' => __NAMESPACE__ . '\render_block', ) ); } add_action( 'init', __NAMESPACE__ . '\register_block' ); /** * Like block render function. * * @param array $attr Array containing the Like block attributes. * * @return string */ function render_block( $attr ) { /* * Enqueue necessary scripts and styles. */ Jetpack_Gutenberg::load_assets_as_required( __DIR__ ); $output = 'This is where the like button will go.'; return sprintf( '