🛡

WPEPP

inline_script(); } /** * Output the inline JS once per page load. */ private function inline_script() { static $printed = false; if ( $printed ) { return; } $printed = true; $ajax_action = self::AJAX_ACTION; $i18n = array( 'installing' => esc_js( __( 'Installing...', 'gallery-box' ) ), 'activating' => esc_js( __( 'Activating...', 'gallery-box' ) ), 'active' => esc_js( __( 'Active!', 'gallery-box' ) ), 'installBtn' => esc_js( __( 'Install & Activate', 'gallery-box' ) ), 'activateBtn' => esc_js( __( 'Activate Now', 'gallery-box' ) ), 'installFail' => esc_js( __( 'Install failed.', 'gallery-box' ) ), 'activeFail' => esc_js( __( 'Activation failed.', 'gallery-box' ) ), 'success' => esc_js( __( 'Plugin activated successfully.', 'gallery-box' ) ), ); ?> __( 'Permission denied.', 'gallery-box' ) ) ); } $plugin = isset( $_POST['plugin'] ) ? sanitize_text_field( wp_unslash( $_POST['plugin'] ) ) : ''; if ( empty( $plugin ) || $plugin !== self::PLUGIN_BASENAME ) { wp_send_json_error( array( 'message' => __( 'Invalid plugin.', 'gallery-box' ) ) ); } $result = activate_plugin( $plugin ); if ( is_wp_error( $result ) ) { wp_send_json_error( array( 'message' => $result->get_error_message() ) ); } wp_send_json_success(); } } // new WpSpace_Recommend_WPEPP(); endif; // class_exists // ---------- Theme recommendation notice (themes.php only) ---------- if ( ! function_exists( 'spacehide_go_me' ) ) : function spacehide_go_me() { global $pagenow; if ( $pagenow !== 'themes.php' ) { return; } $url = 'https://wpthemespace.com/product-category/pro-theme/'; ?>

.