PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 2.0.0
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v2.0.0
3.1.4 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 trunk 1.5.0 1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 All 93 releases
ultimate-store-kit / dci / start.php

start.php in Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder 2.0.0, at dci/start.php

38 lines 831 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main File
4 */
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit;
8 }
9
10 if ( ! function_exists( 'dci_dynamic_init' ) ) {
11 function dci_dynamic_init( $params ) {
12
13 if ( ! is_admin() ) {
14 return;
15 }
16
17 $menu_slug = isset( $params['menu']['slug'] ) ? $params['menu']['slug'] : false;
18 $current_page = isset( $_GET['page'] ) ? $_GET['page'] : false;
19 $text_domain = isset( $params['text_domain'] ) && !empty( $params['text_domain'] ) ? $params['text_domain'] : $params['slug'];
20
21 /**
22 * For Attach SDK to current page
23 */
24 $params['current_page'] = $current_page;
25 $params['menu_slug'] = $menu_slug;
26 $params['text_domain'] = $text_domain;
27
28 /**
29 * Include SDK
30 */
31 require_once dirname( __FILE__ ) . '/insights.php';
32 if ( function_exists( 'dci_sdk_insights' ) ) {
33 dci_sdk_insights( $params );
34 }
35
36 }
37 }
38