false ) ); if ( wp_is_block_theme() ) { $processor = new WP_HTML_Tag_Processor( $contents ); while ( $processor->next_tag( 'input' ) ) { if ( 'submit' === $processor->get_attribute( 'type' ) && 'wp-submit' === $processor->get_attribute( 'name' ) ) { $processor->add_class( 'wp-block-button__link' ); $processor->add_class( wp_theme_get_element_class_name( 'button' ) ); $contents = $processor->get_updated_html(); break; } } } } $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) ); return '
' . $contents . '
'; } /** * Registers the `core/loginout` block on server. * * @since 5.8.0 */ function register_block_core_loginout() { register_block_type_from_metadata( __DIR__ . '/loginout', array( 'render_callback' => 'render_block_core_loginout', ) ); } add_action( 'init', 'register_block_core_loginout' );