generate_css(); } public function render_block_content( $attributes, $content, $block_instance ) { $attr_array = [ 'src' => Helper::get_attribute_value( $attributes, 'src' ), 'width' => Helper::get_attribute_value( $attributes, 'width' ), 'height' => Helper::get_attribute_value( $attributes, 'height' ), ]; $shortcode = '[academy_pdf ' . Helper::attr_shortcode( $attr_array ) . ']'; echo do_shortcode( $shortcode ); } }