MK
Size: a a a
MK
MK
MK
MK
IH
MK
MK
MK
IH
elementor/element/form/section_form_options/after_section_end
?MK
public function get_name() {
return 'form';
}
MK
MK
IH
MK
ctrl
и имя метода $this->start_control_section
- попадаешь в определение данной функции - там есть хукиIH
add_action( 'elementor/element/form/section_form_options/after_section_end', function( $element, $args ) {
/** @var \Elementor\Element_Base $element */
$element->start_controls_section(
'custom_section',
[
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
'label' => __( 'Custom Section', 'plugin-name' ),
]
);
$element->add_control(
'custom_control',
[
'type' => \Elementor\Controls_Manager::NUMBER,
'label' => __( 'Custom Control', 'plugin-name' ),
]
);
$element->end_controls_section();
}, 99, 2 );
пример с доки (https://code.elementor.com/php-hooks/#elementorelementsection_namesection_idafter_section_end). чет не работает, хотя в вар дамп $element
попадаетMK