# ultimate-post/2.2.5/addons/elementor/init.php

Post Grid Gutenberg Blocks – PostX, version 2.2.5. 25 lines.

- Page: https://pluginprobe.com/plugins/ultimate-post/2.2.5/code/addons/elementor/init.php
- Raw: https://pluginprobe.com/plugins/ultimate-post/2.2.5/raw/addons/elementor/init.php
- Modified: 2021-03-02T11:28:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ultimate-post/2.2.5/code/addons/elementor/init.php#L10-L20`.

```php
<?php
defined( 'ABSPATH' ) || exit;

add_filter('ultp_addons_config', 'ultp_elementor_config');
function ultp_elementor_config( $config ) {
	$configuration = array(
		'name' => __( 'Elementor Addons', 'ultimate-post' ),
		'desc' => __( 'Enable Elementor Addons for Elementor Website Builder.', 'ultimate-post' ),
		'img' => ULTP_URL.'/assets/img/addons/saved-template.svg',
		'is_pro' => false
	);
	$config['ultp_elementor'] = $configuration;
	return $config;
}

add_action('plugins_loaded', 'ultp_elementor_init');
function ultp_elementor_init(){
	$settings = ultimate_post()->get_setting('ultp_elementor');
	if ($settings == 'true') {
		if(did_action( 'elementor/loaded' )){
			require_once ULTP_PATH.'/addons/elementor/Elementor.php';
			Elementor_ULTP_Extension::instance();
		}
	}
}
```
