get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled()) { $screen = wc_get_page_screen_id( 'shop-order' ); } add_meta_box( 'woo-ml-order', ' ' . __('MailerLite', 'woo-mailerlite'), 'woo_ml_order_meta_box_output', $screen, 'side', 'low' ); } add_action('add_meta_boxes', 'woo_ml_register_meta_boxes'); /** * Outputs the content of the meta box */ function woo_ml_order_meta_box_output($post) { wp_nonce_field(basename(__FILE__), 'woo_ml_order_meta_box_nonce'); $order = ($post instanceof WP_Post) ? wc_get_order($post->ID) : $post; $order_id = $order->get_id(); $icon_yes = ''; $icon_no = ''; ?> orderCustomerSubscribe($order_id); ?>
checkCustomerSubscribed($order_id); ?>
orderCustomerAlreadySubscribed($order_id); ?>
checkOrderSubscriberUpdated($order_id); ?>
orderDataSubmitted($order_id); ?>
checkOrderTracking($order_id); ?>