billogram_sync_orders_callback

The WooCommerce Billogram Integration billogram sync orders callback function.

Description

billogram_sync_orders_callback(); 

Usage

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

Defined (1)

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

/woocommerce-billogram2-extended.php  
  1. function billogram_sync_orders_callback() { 
  2. global $wpdb; // this is how you get access to the database 
  3. $fnox = new WC_Billogram_Extended(); 
  4. if($fnox->sync_orders_to_billogram()) { 
  5. echo "Ordrar r synkroniserade utan problem."; 
  6. else{ 
  7. echo "Ngot gick fel"; 
  8. die(); // this is required to return a proper result