$attributes Block attributes. * @since 2.8.0 * @return string */ public function render( $attributes ) { $shortcode_atts = [ 'per_page' => isset( $attributes['perPage'] ) && is_numeric( $attributes['perPage'] ) ? strval( absint( $attributes['perPage'] ) ) : '10', 'show_subscription' => ! empty( $attributes['showSubscription'] ) ? 'true' : 'false', ]; $shortcode_instance = Payment_History_Shortcode::get_instance(); return $shortcode_instance->render( $shortcode_atts ); } }