PluginProbe
PayPlug for WooCommerce (Official) / 3.1.0
PayPlug for WooCommerce (Official) v3.1.0
3.1.0 3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 All 102 releases
← All changes | src/Admin/Metabox.php +2 -2 2.18.0 → 3.1.0 View file →
@@ -28,9 +28,9 @@
28 28 * Register a custom metabox to display metadata for the current order.
29 29 *
30 30 * This metabox is only register if the current order has been paid via PayPlug.
31 31 */
32 - public function register_payplug_metabox()
32 + public function register_payplug_metabox(): void
33 33 {
34 34 global $post;
35 35
36 36 $screen = class_exists('\Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController') && wc_get_container()->get(CustomOrdersTableController::class)->custom_orders_table_usage_is_enabled()
@@ -50,9 +50,9 @@
50 50 * Render the metabox content.
51 51 *
52 52 * @param WP_Post $post
53 53 */
54 - public function render($post)
54 + public function render($post): void
55 55 {
56 56 $order = ($post instanceof WP_Post) ? wc_get_order($post->ID) : $post;
57 57
58 58 if (false === $order) {