Skip to content

Instantly share code, notes, and snippets.

@zzfortezz
Last active November 9, 2018 08:20
Show Gist options
  • Save zzfortezz/78dfc0d8dab676786d174fa8830ec83e to your computer and use it in GitHub Desktop.
Save zzfortezz/78dfc0d8dab676786d174fa8830ec83e to your computer and use it in GitHub Desktop.
<?php
/**
* Register the widget controls.
*
* Adds different input fields to allow the user to change and customize the widget settings.
*
* @since 1.0.0
*
* @access protected
*/
protected function _register_controls() {
$this->start_controls_section(
'addon_text_display',
[
'label' => __( 'Tên của section', 'addon_elementor' ),
]
);
$this->add_control(
'custom_text',
[
'label' => __( 'Custom text', 'addon_elementor' ),
'type' => Controls_Manager::TEXT,
'default' => '',
'placeholder' => __( 'Enter your text', 'addon_elementor' ),
]
);
$this->end_controls_section();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment