$attributes Block attributes. * * @return string|false */ public function render( $attributes ) { $id = isset( $attributes['id'] ) ? Helper::get_integer_value( $attributes['id'] ) : ''; if ( empty( $id ) ) { return ''; } $sf_classname = $attributes['className'] ?? ''; $show_title_current_page = $attributes['showTitle'] ?? true; $form = get_post( $id ); if ( ! $form || SRFM_FORMS_POST_TYPE !== $form->post_type || 'publish' !== $form->post_status ) { return esc_html__( 'This form has been deleted or is unavailable.', 'sureforms' ); } // Pass block attributes for per-embed styling support. return Generate_Form_Markup::get_form_markup( $id, $show_title_current_page, $sf_classname, 'post', false, $attributes ); } }