array( self::class, 'render' ), ) ); wp_set_script_translations( 'forwp-booking-editor-script', '4wp-booking', FORWP_BOOKING_PATH . 'languages' ); } /** * Server render. * * @param array $attributes Block attributes. * @return string */ public static function render( $attributes ): string { return Plugin::render( array( 'provider' => isset( $attributes['provider'] ) ? (string) $attributes['provider'] : '', 'template' => isset( $attributes['template'] ) ? (string) $attributes['template'] : '', 'flow' => isset( $attributes['flow'] ) ? (string) $attributes['flow'] : '', ) ); } }