Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created August 1, 2014 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tribulant/5b281b99fe3eb6004773 to your computer and use it in GitHub Desktop.
Save tribulant/5b281b99fe3eb6004773 to your computer and use it in GitHub Desktop.
Checkout: Action - checkout_admin_supplier_saved Example
<?php
function supplier_saved($insertid = null, $data = null) {
// Do something with $insertid or $data
global $wpcoDb, $Supplier;
$wpcoDb -> model = $Supplier -> model;
$supplier = $wpcoDb -> find(array('id' => $insertid));
}
add_action('checkout_admin_supplier_saved', 'supplier_saved', 10, 2);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment