Skip to content

Best Practices

Elementor Core Basic

This Best Practices guide is a living document for Elementor addon developers, meant to be revised as Elementor makes changes, introduces new features, and provides additional recommendations. We recommend following these best practices.

Supported PHP Versions

Ensure your addon is compatible with the most used PHP version (v7.4) and the latest PHP versions and (v8.0 and above).

Compatibility Tag

Elementor has its own header comments where you can note the Elementor version that the addon was tested against. This is an optional header, but we recommend using it.

Compatibility Checks

Check which Elementor and PHP versions a website uses to make sure your addon supports it. Otherwise, notify the user that the website doesn’t meet the addon’s requirements.

Scripts & Style Registration

Elementor has its own way to register scripts and styles. Using the recommended methods ensures your addon is optimized for performance.

Internationalization

Use WordPress functions to internationalize your strings.

Remove Deprecated Code

Already have an addon? Run it through the Elementor Deprecated Code Detector to see if your addon contains any deprecated code. If so, we highly recommend removing it. You can see a list of recent deprecations here

Adopt Latest Performance Features

Implement Element Caching to store element output in the cache for more performant websites.

Elementor Pro Developer License

Test with Elementor Pro by requesting a Developer License.

Security

Participate in Patchstack’s free mVDP Program to maintain the security hygiene of your product with a clear vulnerability reporting structure.