Skip to content

Instantly share code, notes, and snippets.

View emanueljacob's full-sized avatar

Emanuel Jacob emanueljacob

View GitHub Profile
<?php
/**
* class WP_Theme_Customizer_Import_Json
*
* method list:
* - __construct()
* - register_json()
* - set_capability()
* - register_customizer()
* - get_theme_name()
@emanueljacob
emanueljacob / zsh_bash_keybindings_alt-arrow_mac.sh
Last active August 27, 2019 13:17
Alt + Arrow Key Bindings for JetBrains IntelliJ/PhpStorm on MacOS
# Currently the embedded terminal of Jetbrains IDEs does not make use of keybindings defined in terminal/iterm on mac
# Instead yo get the ring bell and output like [C or [D
#
# see: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000013224-Alt-key-not-working-in-embedded-terminal
#
# to fix it and allow ALT + Arrow in the the IDEs embedded terminal just do the following (depending on wich shell you use)
# If you use zsh
# Add this to ~/.zshrc :
bindkey "\e\eOD" backward-word
@emanueljacob
emanueljacob / gist:206d50e2f4862fd2f37a76088d3b0dd1
Created April 20, 2019 09:08 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@emanueljacob
emanueljacob / shortcode-woocommerce-add-no-products-message.php
Created July 1, 2018 12:32
Filter woocommerce products shortcode and show default message if no product has been found
function prefix_filter_shortcodes($output, $tag, $attr, $m){
//filter woocommerce "products" shortcode output
if($tag == 'products') {
$default_output = '<div class="woocommerce columns-3 "></div>';
//show default message if no product has been found
if(empty($output) || $output == $default_output ){
?>
<div class="no-products-info">
<p class="woocommerce-no-products"><?php _e( 'No products were found matching your selection.', 'woocommerce' ); ?></p>