PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.5.0
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.5.0
4.5.6 4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 All 148 releases
ultimate-post-kit / includes / feedback-hub / start.php

start.php in Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets 4.5.0, at includes/feedback-hub/start.php

37 lines 1.0 KB
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( 'rc_dynamic_init' ) ) {
11 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- established function name relied on across the plugin family / feedback SDK; renaming would break integration.
12 function rc_dynamic_init( $params ) {
13
14 if ( is_admin() ) :
15
16 $menu_slug = isset( $params['menu']['slug'] ) ? $params['menu']['slug'] : false;
17 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only check of the current admin page slug for display routing, no form data processed.
18 $current_page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : false;
19
20 /**
21 * Attach SDK to current page
22 */
23 $params['current_page'] = $current_page;
24 $params['menu_slug'] = $menu_slug;
25
26 /**
27 * Include SDK
28 */
29 require_once dirname( __FILE__ ) . '/notice.php';
30 if ( function_exists( 'rc_sdk_automate' ) ) {
31 rc_sdk_automate( $params );
32 }
33
34 endif;
35 }
36 }
37