PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.7.0
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.7.0
2.7.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 All 43 releases
← All changes | includes/dynamic-keywords/keywords/order-date.php +5 -8 1.1.4 → 2.7.0 View file →
@@ -1,13 +1,7 @@
1 1 <?php
2 2
3 3 class Order_Date extends Tag_Base {
4 -
5 - // phpcs:disable Generic.CodeAnalysis.UselessOverridingMethod
6 - public function __construct() {
7 - parent::__construct();
8 - }
9 -
10 4 /**
11 5 * Get class id.
12 6 *
13 7 * @return string
@@ -18,8 +12,9 @@
18 12
19 13 /**
20 14 * Get class title.
21 15 *
16 + * @param array $atts array of shortcode arguments.
22 17 * @return string
23 18 */
24 19 public function get_title() {
25 20 return esc_html__( 'Order Date', 'sellkit' );
@@ -29,11 +24,13 @@
29 24 * Render true content.
30 25 *
31 26 * @return string
32 27 */
33 - public function render_content() {
28 + public function render_content( $atts ) {
29 + $this->get_data();
30 +
34 31 if ( empty( self::$order ) ) {
35 - $this->get_data();
32 + return $this->shortcode_content( $atts );
36 33 }
37 34
38 35 $order_data = self::$order->get_data();
39 36