Skip to content

Instantly share code, notes, and snippets.

@Rupashdas
Last active June 1, 2020 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rupashdas/794e44884b9e24db18ab19d10adff01c to your computer and use it in GitHub Desktop.
Save Rupashdas/794e44884b9e24db18ab19d10adff01c to your computer and use it in GitHub Desktop.
Boilarplate widget for elementor
<?php
class Elementor_Faq_Widget Extends \Elementor\Widget_Base {
public function get_name() {
return "widgetName";
}
public function get_title() {
return __( "Widget Title", "textdomain" );
}
public function get_icon() {
return "fa fa-home";
}
public function get_categories() {
return ['custom'];
}
public function _register_controls() {
$this->start_controls_section(
'content_section',
[
'label' => __( 'Content', 'textdomain' ),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);
$this->end_controls_section();
}
protected function render() {
$settings = $this->get_settings_for_display();
}
protected function _content_template(){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment