woobill_order_sync_metabox

The WooCommerce Billogram Integration woobill order sync metabox function.

Description

woobill_order_sync_metabox(); 

Usage

  1. if ( !function_exists( 'woobill_order_sync_metabox' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-billogram-integration/woocommerce-billogram2-extended.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woobill_order_sync_metabox(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/woocommerce-billogram2-extended.php  
  1. function woobill_order_sync_metabox() { 
  2. include_once("class-billogram2-api.php"); 
  3. $fnox = new WC_Billogram_Extended(); 
  4. if( $fnox->is_license_key_valid() == "Invalid" ) { 
  5. echo "License Key is Invalid!"; 
  6. return false; 
  7. die(); // this is required to return a proper result 
  8. add_meta_box( 'Billogram', 'Billogram sync status', 'woobill_order_sync_status', 'shop_order', 'side', 'high' ); 
  9. add_action( 'admin_head', 'woobill_admin_message' );