This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
* |