Skip to content

Instantly share code, notes, and snippets.

View abdusfauzi's full-sized avatar
🏠
Working from anywhere

Abdus Fauzi abdusfauzi

🏠
Working from anywhere
View GitHub Profile
@abdusfauzi
abdusfauzi / .zshrc
Created July 22, 2020 06:51
.zshrc
# If you come from bash you might have to change your $PATH.
export PATH=/usr/local/sbin:$HOME/bin:/usr/local/bin:~/.composer/vendor/bin:$PATH
export PATH="$PATH:/Users/abdusfauzi/Tools/flutter/bin"
export PATH="$HOME/.npm-packages/bin:$PATH"
# Path to your oh-my-zsh installation.
export ZSH="/Users/abdusfauzi/.oh-my-zsh"
export VISUAL=nano
export EDITOR="$VISUAL"
@abdusfauzi
abdusfauzi / functions.php
Created April 28, 2020 07:32
Add jQuery to Post edit and new page to TICK the izooto checkbox
<?php
function add_admin_scripts() {
if ( is_plugin_active( 'izooto-web-push/izooto.php' ) ) {
global $post;
$screen = get_current_screen();
$post_status = ['auto-draft', 'draft'];
// print_r( $post->post_status );
if ( 'post' === $screen->base && 'post' === $post->post_type && in_array( $post->post_status, $post_status ) ) {
@abdusfauzi
abdusfauzi / filter-wc-orders-by-gateway.php
Created May 26, 2018 13:20 — forked from bekarice/filter-wc-orders-by-gateway.php
Filters WooCommerce Orders by Payment Gateway Used
<?php
/**
* Plugin Name: Filter WooCommerce Orders by Payment Method
* Plugin URI: http://skyverge.com/
* Description: Filters WooCommerce orders by the payment method used :)
* Author: SkyVerge
* Author URI: http://www.skyverge.com/
* Version: 1.0.0
* Text Domain: wc-filter-orders-by-payment
*