Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file class-micemade-posts-grid.php #20

Open
ghost opened this issue Jun 5, 2023 · 1 comment
Open

file class-micemade-posts-grid.php #20

ghost opened this issue Jun 5, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 5, 2023

this file -> class-micemade-posts-grid.php call function -> Micemade_Shared_Controls

I looked in the file class-micemade-posts-grid.php no run Any Micemade_Shared_Controls function

How it works ?

@Micemade
Copy link
Owner

Hi,

The Micemade_Shared_Controls is class in "includes/class-micemade-shared-controls.php", and it is loaded in the main class file (in "includes/class-micemade-elements.php" dir).

In the class-micemade-elements.php, in class Micemade_Elements, there is a requires() method to load all necessary classes and that's where the Micemade_Shared_Controls loads.

In the same Micemade_Elements class, there is a shared_controls() method, which uses Elementor's PHP hooks to place shared controls, depending on widget (or element), and used by that widgets.

Check the Elementor's dev documentation for PHP hooks:
https://developers.elementor.com/docs/hooks/php/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant