elementor / elementor/elementor

Hook elementor/element/print_template - Never gets called...

Open
#8,436 1 comment 0 reactions 0 assignees View on GitHub
mod/b*
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

[ x ] I have searched for similar issues in both open and closed tickets and can find a duplicate, but not solving the issue.
[ x ] The issue still exists against the latest stable version of Elementor.

## Description

I am trying to add some additional params (classes etc.) to sections or columns by using the filter `elementor/element/print_template` to manipulate the output.

## Steps to reproduce

It seems that the code within this block never gets called. I did a lot of research and those similar topics in here aren't solved neither ;) So I'll give it a try.

Simple Code

```
add_action ( 'elementor/element/print_template', function ( string $content_template, \Elementor\Element_Base $widget ) {
// nothing happens
}, 10, 2 );

```

The same thing with custom widgets using `elementor/widget/print_template` in which the widget is queried, all works fine. So maybe you guys have a hint for me what I doo wrong or how can I solve that, adding extra stuff to sections and columns...

Big Thanks in advance
Michael

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.