| @@ -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 | |