Skip to content

Instantly share code, notes, and snippets.

Elliot raisonon

Block or report user

Report or block raisonon

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

Keybase proof

I hereby claim:

  • I am raisonon on github.
  • I am ejntaylor ( on keybase.
  • I have a public key ASAzxgSxZCJiGVOAnZsjnXcbOPso3bK3SjpWLcNt9Ljegwo

To claim this, I am signing this object:

raisonon / functions.php
Created Dec 2, 2017
Rename cart to bag
View functions.php
function woo_custom_change_cart_string($translated_text, $text, $domain) {
$translated_text = str_replace("cart", "bag", $translated_text);
$translated_text = str_replace("Cart", "Bag", $translated_text);
$translated_text = str_replace("View Cart", "View Bag", $translated_text);
View cmb2_front_end_test.php
function ss_settings_form( $atts = array() ) {
global $post;
// var_dump($atts);
* Depending on your setup, check if the user has permissions to edit_posts
View ss_list_array.php
function ss_list_array() {
// Set Vars
$current_user = get_current_user();
$username = $current_user->user_login;
$post = get_the_ID();
View cmb2.php
// cmb2
// hook the function to the cmb2_init action
add_action( 'cmb2_init', 'cmb2_sample_metaboxes' );
// create the function that creates metaboxes and populates them with fields
function cmb2_sample_metaboxes() {
View sites.php
add_shortcode( 'ss-site-form', 'ss_frontend_form_shortcode' );
* Shortcode to display a CMB2 form for a post ID.
* @param array $atts Shortcode attributes
* @return string Form HTML markup
function ss_frontend_form_shortcode( $atts = array() ) {
global $post;
raisonon / functions.php
Last active Jan 11, 2019
WooCommerce subscriptions without credit card
View functions.php
// Free Trial - Let GF Reg use email as username
* WordPress register with email only, make it possible to register with email
* as username in a multisite installation
* @param Array $result Result array of the wpmu_validate_user_signup-function
* @return Array Altered result array
function custom_register_with_email($result) {
raisonon / functions.php
Last active Aug 29, 2015
Layers - Jetpack Infinite Scroll Support (attempts)
View functions.php
// infinite scroll support
add_theme_support( 'infinite-scroll', array(
'container' => 'content',
'footer' => true,
'wrapper' => true,
'type' => 'click',
raisonon / style.css
Created Jul 3, 2015
WooCommerce Tax Toggle Mobile CSS
View style.css
/* Portrait and Landscape */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2) {
#wcvat-toggle {
position: fixed;
bottom: 0;
raisonon / gist:0bb59dca0afc8a2b83d6
Created Jun 17, 2015
OBox Layers - Adds comment to featured image function
View gist:0bb59dca0afc8a2b83d6
* Post Featured Media
* @param int $attachmentid ID for attachment
* @param int $size Media size to use
* @param int $video oEmbed code
* @return string $media_output Feature Image or Video
You can’t perform that action at this time.