PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.3.0
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.3.0
2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 1.8.1 All 42 releases
← All changes | includes/elementor/class.php +1 -11 trunk2.3.0 View file →
@@ -213,21 +213,11 @@
213 213 *
214 214 * @return array
215 215 */
216 216 public function get_localize_data() {
217 - $needs_shipping = '';
218 -
219 - if ( function_exists( 'WC' ) ) {
220 - $cart = WC()->cart;
221 -
222 - if ( $cart && method_exists( $cart, 'needs_shipping' ) ) {
223 - $needs_shipping = $cart->needs_shipping();
224 - }
225 - }
226 -
227 217 return [
228 218 'nonce' => wp_create_nonce( 'sellkit_elementor' ),
229 - 'wcNeedShipping' => $needs_shipping,
219 + 'wcNeedShipping' => ( function_exists( 'WC' ) ) ? WC()->cart->needs_shipping() : '',
230 220 'url' => [
231 221 'assets' => sellkit()->plugin_url() . 'assets/',
232 222 ],
233 223 ];