← All changes
|
includes/dynamic-keywords/keywords/order-payment-method.php
+5
-8
1.1.0
→
2.7.0
View file →
| @@ -1,13 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | class Order_Payment_Method 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 |
| @@ -27,13 +21,16 @@ | ||
| 27 | 21 | |
| 28 | 22 | /** |
| 29 | 23 | * Render true content. |
| 30 | 24 | * |
| 25 | + * @param array $atts array of shortcode arguments. | |
| 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 | |