Skip to content

Instantly share code, notes, and snippets.

Rank Type Prefix/Suffix Length
1 Prefix my+ 2
2 Suffix +online 6
3 Prefix the+ 3
4 Suffix +web 3
5 Suffix +media 5
6 Prefix web+ 3
7 Suffix +world 5
8 Suffix +net 3
9 Prefix go+ 2
@dr5hn
dr5hn / functions.php
Created October 15, 2017 09:50
How to show product image on checkout page. Woocommerce
<?php
/*
* Showing Product Image on Checkout Page -- By Darshan Gada
*/
add_action('woocommerce_before_checkout_form', 'displays_cart_products_feature_image');
function displays_cart_products_feature_image() {
foreach ( WC()->cart->get_cart() as $cart_item ) {
$item = $cart_item['data'];
@Shelob9
Shelob9 / basics.php
Last active August 10, 2020 08:27
Example code to help you create your own Caldera Forms add-on. See: https://calderaforms.com/doc/create-field-type-caldera-forms
<?php
/**
* Register new field type
*/
add_filter( 'caldera_forms_get_field_types', function( $fields ){
//In this example "field_slug" will identify field later, you should change this
$fields[ 'field_slug' ] = array(
//Change this to the name of your field
'field' => __( 'Short Name', 'text-domain' ),
//Change this to the description of your field
@lifenautjoe
lifenautjoe / instagram-web-unfollow.js
Created March 14, 2017 23:27
Script to unfollow people in the instagram website
/**
* Instagram web unfollow script
*
* WHAT IS IT?
* A script to unfollow people in the instagram website
*
* WHY?
* I needed to clean my account so I quickly did this
*
* HOW TO USE:
@atomtigerzoo
atomtigerzoo / wordpress-disable-yoast-seo-on-custom-post-type.php
Created March 31, 2016 12:39
Wordpress: Disable Yoast SEO on Custom Post Type
function my_remove_wp_seo_meta_box() {
remove_meta_box('wpseo_meta', YOUR_POST_TYPE_NAME_HERE, 'normal');
}
add_action('add_meta_boxes', 'my_remove_wp_seo_meta_box', 100);
@amdrew
amdrew / gist:c48d40e13e4326c289eb
Created November 4, 2014 22:51
Easy Digital Downloads - Add the customer's username to the payment's "Customer Details" section and link through to their user profile
<?php
/**
* Easy Digital Downloads - Add the customer's username to the payment's "Customer Details" section and link through to their profile
*/
function sumobi_edd_customer_details_username( $payment_id ) {
$user_info = edd_get_payment_meta_user_info( $payment_id );
$customer_id = $user_info['id'];
if ( ! $customer_id ) {