Skip to content

Instantly share code, notes, and snippets.


Kshirod Patel kshirodpatel

  • Bhubaneswar
Block or report user

Report or block kshirodpatel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View WooCommerce Order Status Hooks
function mysite_pending($order_id) {
error_log("$order_id set to PENDING", 0);
function mysite_failed($order_id) {
error_log("$order_id set to FAILED", 0);
function mysite_hold($order_id) {
error_log("$order_id set to ON HOLD", 0);
function mysite_processing($order_id) {
View gist:87a3e1187b1d946efab3b4f37f40ec01
## -- Initializing a new git repository
$$ git init
## -- Useful git log commands
$$ git log --oneline ## print short sha in one line
$$ git log -3 ## show only first 3 commit
$$ git log --author="John" ## show commits only by this author
## -- Cloning a git repository
You can’t perform that action at this time.