[X] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[X] The issue still exists against the latest stable version of Elementor.
Description
Hi,
I’ve been working on extending some base Elementor Pro widgets for a project I’m working on and I’ve succeeded with the Button widget only by now. But I ran into a problem extending widgets that contain repeater controls, such as the Slides.
My idea is to extend the slides (items) with an extra control that I’ve created, add it at the beginning of the “Content” tab. Also applying my own URL to a corresponding slide when the widget is rendered in the frontend.
The image below shows a successful injection of my component using this hook add_action(‘elementor/element/slides/section_slides/after_section_start’, function(){...}).
but sadly not in the right place.
I would like to place it somehow in the content section of all slides items:
Same question goes for other widgets/components that contain a repeater section.
Steps to reproduce
There is nothing stated in the current docs on how to extend the Elementor Slider items (or any other repeaters) with the hooks provided here: https://developers.elementor.com/docs/hooks/php/. Perhaps a decent list of section names/ids would be just fine.
Isolating the problem
[X] This bug happens with only Elementor plugin active (and Elementor Pro).
[x] This bug happens with a Blank WordPress theme active (Hello theme).
[x] I can reproduce this bug consistently using the steps above.
System Info
== Server Environment ==
Operating System: Linux
Software: Apache
MySQL version: Source distribution v5.7.32-35
PHP Version: 7.4.28
PHP Max Input Vars: 3000
PHP Max Post Size: 256M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 5.9
Site URL: https://jeroenv27.sg-host.com
Home URL: https://jeroenv27.sg-host.com
WP Multisite: No
Max Upload Size: 256 MB
Memory limit: 768M
Permalink Structure: /%year%/%monthnum%/%postname%/
Language: en-US
Timezone: 1
Admin Email: administratie@propel.us
Debug Mode: Inactive
== Elementor Experiments ==
Optimized DOM Output: Active
Improved Asset Loading: Active
Improved CSS Loading: Active
Inline Font Icons: Inactive
Accessibility Improvements: Active
Import Export Template Kit: Active by default
Additional Custom Breakpoints: Inactive
Hide native WordPress widgets from search results: Inactive
Default to New Theme Builder: Inactive
Landing Pages: Inactive
Color Sampler: Inactive
Favorite Widgets: Inactive
Admin Top Bar: Inactive
Form Submissions: Inactive
Scroll Snap: Inactive
== Log ==
Log: showing 20 of 362022-01-31 23:06:52 [info] elementor::elementor_updater Started
2022-01-31 23:06:52 [info] Elementor/Upgrades - _on_each_version Start
2022-01-31 23:06:52 [info] Elementor/Upgrades - _on_each_version Finished
2022-01-31 23:06:52 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.5.3',
'to' => '3.5.4',
)]
2022-01-31 23:06:52 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.5.3',
'to' => '3.5.4',
)]
2022-02-09 13:30:41 [info] elementor::elementor_updater Started
2022-02-09 13:30:41 [info] Elementor/Upgrades - _on_each_version Start
2022-02-09 13:30:41 [info] Elementor/Upgrades - _on_each_version Finished
2022-02-09 13:30:41 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.5.4',
'to' => '3.5.5',
)]
2022-02-09 13:30:41 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.5.4',
'to' => '3.5.5',
)]
2022-03-02 10:41:15 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.5.5',
'to' => '3.5.6',
)]
2022-03-02 10:41:15 [info] elementor::elementor_updater Started
2022-03-02 10:41:15 [info] Elementor/Upgrades - _on_each_version Start
2022-03-02 10:41:15 [info] Elementor/Upgrades - _on_each_version Finished
2022-03-02 10:41:15 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.5.5',
'to' => '3.5.6',
)]
2022-03-04 14:31:11 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.5.2',
'to' => '3.6.3',
)]
2022-03-04 14:31:12 [info] elementor-pro::elementor_pro_updater Started
2022-03-04 14:31:12 [info] Elementor Pro/Upgrades - _on_each_version Start
2022-03-04 14:31:12 [info] Elementor Pro/Upgrades - _on_each_version Finished
2022-03-04 14:31:12 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.5.2',
'to' => '3.6.3',
)]
PHP: showing 4 of 4PHP: 2022-02-01 07:58:51 [warning X 1][/nas/content/live/tepperefka/wp-content/plugins/elementor/modules/safe-mode/module.php::120] unlink(/nas/content/live/tepperefka/wp-content/mu-plugins/elementor-safe-mode.php): Permission denied [array (
'trace' => '
0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-02-03 07:50:56 [notice X 1][/nas/content/live/tepperefka/wp-content/plugins/elementor/includes/managers/image.php::87] Trying to access array offset on value of type bool [array (
'trace' => '
0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-02-10 08:23:21 [warning X 1][/home/customer/www/jeroenv27.sg-host.com/public_html/wp-content/plugins/elementor-pro/license/api.php::370] in_array() expects parameter 2 to be array, null given [array (
'trace' => '
0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-02-11 14:08:28 [notice X 1][/home/customer/www/jeroenv27.sg-host.com/public_html/wp-content/plugins/elementor/core/common/modules/ajax/module.php::171] Undefined index: data [array (
'trace' => '
Prerequisites
Description
Hi,
I’ve been working on extending some base Elementor Pro widgets for a project I’m working on and I’ve succeeded with the Button widget only by now. But I ran into a problem extending widgets that contain repeater controls, such as the Slides.
My idea is to extend the slides (items) with an extra control that I’ve created, add it at the beginning of the “Content” tab. Also applying my own URL to a corresponding slide when the widget is rendered in the frontend.
The image below shows a successful injection of my component using this hook
add_action(‘elementor/element/slides/section_slides/after_section_start’, function(){...}).
but sadly not in the right place.I would like to place it somehow in the content section of all slides items:![image](https://user-images.githubusercontent.com/95420908/158164367-676c2506-8f42-4c18-a5a7-6d5e04627010.png)
Same question goes for other widgets/components that contain a repeater section.
Steps to reproduce
There is nothing stated in the current docs on how to extend the Elementor Slider items (or any other repeaters) with the hooks provided here: https://developers.elementor.com/docs/hooks/php/. Perhaps a decent list of section names/ids would be just fine.
Isolating the problem
System Info
== Server Environment == Operating System: Linux Software: Apache MySQL version: Source distribution v5.7.32-35 PHP Version: 7.4.28 PHP Max Input Vars: 3000 PHP Max Post Size: 256M GD Installed: Yes ZIP Installed: Yes Write Permissions: All right Elementor Library: Connected
== WordPress Environment == Version: 5.9 Site URL: https://jeroenv27.sg-host.com Home URL: https://jeroenv27.sg-host.com WP Multisite: No Max Upload Size: 256 MB Memory limit: 768M Permalink Structure: /%year%/%monthnum%/%postname%/ Language: en-US Timezone: 1 Admin Email: administratie@propel.us Debug Mode: Inactive
== Theme == Name: Tepper Efka Version: 1.0.0 Author: Propeller Child Theme: Yes Parent Theme Name: Astra Parent Theme Version: 3.7.7 Parent Theme Author: Brainstorm Force
== User == Role: administrator WP Profile lang: en_US User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36
== Active Plugins == Astra Pro Version: 3.6.5 Author: Brainstorm Force
== Elementor Experiments == Optimized DOM Output: Active Improved Asset Loading: Active Improved CSS Loading: Active Inline Font Icons: Inactive Accessibility Improvements: Active Import Export Template Kit: Active by default Additional Custom Breakpoints: Inactive Hide native WordPress widgets from search results: Inactive Default to New Theme Builder: Inactive Landing Pages: Inactive Color Sampler: Inactive Favorite Widgets: Inactive Admin Top Bar: Inactive Form Submissions: Inactive Scroll Snap: Inactive
== Log ==
Log: showing 20 of 362022-01-31 23:06:52 [info] elementor::elementor_updater Started 2022-01-31 23:06:52 [info] Elementor/Upgrades - _on_each_version Start
2022-01-31 23:06:52 [info] Elementor/Upgrades - _on_each_version Finished 2022-01-31 23:06:52 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.5.3', 'to' => '3.5.4', )] 2022-01-31 23:06:52 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.5.3', 'to' => '3.5.4', )] 2022-02-09 13:30:41 [info] elementor::elementor_updater Started 2022-02-09 13:30:41 [info] Elementor/Upgrades - _on_each_version Start
2022-02-09 13:30:41 [info] Elementor/Upgrades - _on_each_version Finished 2022-02-09 13:30:41 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.5.4', 'to' => '3.5.5', )] 2022-02-09 13:30:41 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.5.4', 'to' => '3.5.5', )] 2022-03-02 10:41:15 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.5.5', 'to' => '3.5.6', )] 2022-03-02 10:41:15 [info] elementor::elementor_updater Started 2022-03-02 10:41:15 [info] Elementor/Upgrades - _on_each_version Start
2022-03-02 10:41:15 [info] Elementor/Upgrades - _on_each_version Finished 2022-03-02 10:41:15 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.5.5', 'to' => '3.5.6', )] 2022-03-04 14:31:11 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.5.2', 'to' => '3.6.3', )] 2022-03-04 14:31:12 [info] elementor-pro::elementor_pro_updater Started 2022-03-04 14:31:12 [info] Elementor Pro/Upgrades - _on_each_version Start
2022-03-04 14:31:12 [info] Elementor Pro/Upgrades - _on_each_version Finished 2022-03-04 14:31:12 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.5.2', 'to' => '3.6.3', )]
PHP: showing 4 of 4PHP: 2022-02-01 07:58:51 [warning X 1][/nas/content/live/tepperefka/wp-content/plugins/elementor/modules/safe-mode/module.php::120] unlink(/nas/content/live/tepperefka/wp-content/mu-plugins/elementor-safe-mode.php): Permission denied [array ( 'trace' => '
0: Elementor\Core\Logger\Manager -> shutdown()
', )] PHP: 2022-02-03 07:50:56 [notice X 1][/nas/content/live/tepperefka/wp-content/plugins/elementor/includes/managers/image.php::87] Trying to access array offset on value of type bool [array ( 'trace' => '
0: Elementor\Core\Logger\Manager -> shutdown()
', )] PHP: 2022-02-10 08:23:21 [warning X 1][/home/customer/www/jeroenv27.sg-host.com/public_html/wp-content/plugins/elementor-pro/license/api.php::370] in_array() expects parameter 2 to be array, null given [array ( 'trace' => '
0: Elementor\Core\Logger\Manager -> shutdown()
', )] PHP: 2022-02-11 14:08:28 [notice X 1][/home/customer/www/jeroenv27.sg-host.com/public_html/wp-content/plugins/elementor/core/common/modules/ajax/module.php::171] Undefined index: data [array ( 'trace' => '
0: Elementor\Core\Logger\Manager -> shutdown()
', )]
JS: showing 3 of 3JS: 2022-02-21 12:04:14 [error X 9][https://jeroenv27.sg-host.com/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.5.5:2:453832] Cannot read properties of null (reading \'getBoundingClientRect\') JS: 2022-03-10 13:55:15 [error X 10][https://jeroenv27.sg-host.com/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.5.5:2:320402] Cannot read properties of null (reading \'data\') JS: 2022-03-14 10:13:38 [error X 1][https://jeroenv27.sg-host.com/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.5.5:2:252935] Cannot read properties of undefined (reading \'html\')
== Elementor - Compatibility Tag ==
== Elementor Pro - Compatibility Tag ==