__NAMESPACE__ . '\render', ) ); } /** * Render the block content. * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. * * @return string Returns the block markup. */ function render( $attributes, $content, $block ) { ob_start(); do_action( 'pledge_footer' ); $content = ob_get_clean(); $html = new WP_HTML_Tag_Processor( $content ); $html->next_tag( 'button' ); $html->add_class( 'wp-block-button__link' ); $wrapper_attributes = get_block_wrapper_attributes( [ 'class' => 'wp-block-button is-style-text is-small' ]); return sprintf( '
%s
', $wrapper_attributes, $html->get_updated_html() ); }