Skip to content

Instantly share code, notes, and snippets.

View bhubbard's full-sized avatar
:octocat:
Hello

Brandon Hubbard bhubbard

:octocat:
Hello
View GitHub Profile
# Add filter for listing details
add_filter( 'wp_listings_property_details', 'custom_wp_listings_details');
function custom_wp_listings_details() {
$property_details_columns = array(
'col1' => array(
__( 'Price:', 'wp_listings' ) => '_listing_price',
__( 'Address:', 'wp_listings' ) => '_listing_address',
__( 'City:', 'wp_listings' ) => '_listing_city',
__( 'State:', 'wp_listings' ) => '_listing_state',
@bhubbard
bhubbard / gist:72fa94989e5c2c6a0c51
Created April 23, 2015 20:28
Remove WpEngine Bloat Widget
<?php
/**
* Plugin Name: Remove WpEngine Bloat
* Plugin URI: http://wordpress.stackexchange.com/questions/147602/
* Description: Remove the affiliate links widget from the Admin Widgets Page.
* http://wordpress.stackexchange.com/questions/147602/remove-unregister-or-hide-a-widget-added-by-a-plugin
* Version: 1.0
* Author: Bryan WIllis
* Author URI:
* License:

Website and Application Launch Checklist

A checklist of items to check when launching a website or application. Some items may be optional.

Website Specific

  • Git Repo Setup
  • Spelling, Grammer, Punctuation
  • Forms
  • Site Speed
  • Multi-browser compatibility
<?php
/**
* Remove Genesis Page Templates
*
* @author Bill Erickson
* @link http://www.billerickson.net/remove-genesis-page-templates
*
* @param array $page_templates
* @return array
@bhubbard
bhubbard / mls-ssl-support.md
Created May 5, 2015 16:53
List MLS URLS that do and don't support SSL

Domains that support SSL

  • rets-paragon.sandicor.com

Domains that don't support SSL

  • img-paragon.sandicor.com
@bhubbard
bhubbard / gist:60e57faff5340db061ca
Created May 11, 2015 17:39
IhomeFinder - WordPress Options created by Optima Express Plugin
ihf_organizer_enabled
ihf_active_trial_account
ihf_option-layout-type
ihf_activation_token
ihf-acitvation_date
ihf_email_updates_enabled
ihf_save_listing_enabled
ihf_hotsheet_enabled
ihf_featured_properties_enabled
ihf_gallery_shortcodes_enabled
{{listingID}}
{{address}}
{{cityName}}
{{state}}
{{stateAbrv}}
{{zipcode}}
{{countyName}}
{{listingPrice}}
{{idxPropType}}
{{propType}}
if($('.IDX-bioWrapper').html() && ($('.IDX-resultsCount').html() == 0)){
console.log('On the Bio Page and agent has no results');
// Empty the inner html from the div containing the pagination and resuts count.
$('#IDX-resultsContainer').html('');
}