Widget_Shortcode::_register_controls()
Register shortcode widget controls.
Description
Adds different input fields to allow the user to change and customize the widget settings.
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
Source
includes/widgets/shortcode.php
); $this->end_controls_section(); } /** * Render shortcode widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.0 * @access protected */ protected function render() { $shortcode = $this->get_settings( 'shortcode' ); $shortcode = do_shortcode( shortcode_unautop( $shortcode ) ); ?> <div class="elementor-shortcode"><?php echo $shortcode; ?></div> <?php