PluginProbe
Post Grid Gutenberg Blocks – PostX / 4.0.3
Post Grid Gutenberg Blocks – PostX v4.0.3
5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 2.1.2 All 237 releases
ultimate-post / addons / wpbakery / init.php

init.php in Post Grid Gutenberg Blocks – PostX 4.0.3, at addons/wpbakery/init.php

31 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3
4 add_filter('ultp_addons_config', 'ultp_wpbakery_config');
5 function ultp_wpbakery_config( $config ) {
6 $configuration = array(
7 'name' => __( 'WPBakery', 'ultimate-post' ),
8 'desc' => __( 'It lets you use PostX’s Gutenberg blocks in the WPBakery Builder by using the Saved Template Addon.', 'ultimate-post' ),
9 'img' => ULTP_URL.'/assets/img/addons/wpbakery.svg',
10 'is_pro' => false,
11 'docs' => 'https://wpxpo.com/docs/postx/add-on/wpbakery-page-builder-addon/',
12 'live' => 'https://www.wpxpo.com/use-gutenberg-blocks-in-wpbakery-page-builder/live_demo_args',
13 'video' => 'https://www.youtube.com/watch?v=f99NZ6N9uDQ',
14 'position' => 20,
15 'integration' => true
16 );
17 $arr['ultp_wpbakery'] = $configuration;
18 return $arr + $config;
19 }
20
21
22 function ultp_wpbakery_builder() {
23 $settings = ultimate_post()->get_setting('ultp_wpbakery');
24 if ($settings == 'true') {
25 if (defined( 'WPB_VC_VERSION' )) {
26 require_once ULTP_PATH.'/addons/wpbakery/wpbakery.php';
27 }
28 }
29 }
30
31 add_action( 'init', 'ultp_wpbakery_builder' );