Skip to content

Instantly share code, notes, and snippets.

View hlashbrooke's full-sized avatar
🎲

Hugh Lashbrooke hlashbrooke

🎲
View GitHub Profile
@hlashbrooke
hlashbrooke / functions.php
Created November 7, 2015 05:11
Seriously Simple Podcasting: Remove 'Download file' link from episode meta data
add_filter( 'ssp_episode_meta_details', 'ssp_remove_download_link', 10, 3 );
function ssp_remove_download_link ( $meta, $episode_id, $context ) {
unset( $meta['link'] );
return $meta;
}
@hlashbrooke
hlashbrooke / functions.php
Created October 27, 2015 06:43
Seriously Simple Podcasting: Use raw audio file URL instead of custom rewrite
add_filter( 'ssp_episode_download_link', 'ssp_use_raw_audio_file_url', 10, 3 );
function ssp_use_raw_audio_file_url ( $url, $episode_id, $file ) {
return $file;
}
@hlashbrooke
hlashbrooke / .htaccess
Created October 8, 2015 10:27
Seriously Simple Podcasting: .htaccess line for FastCGI servers to enable password protection for feeds. This line to be added above the WordPress rules in the .htaccess file.
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
*Talk title & abstract submitted for ScaleConf 2016: http://scaleconf.org/*
# Scaling Community
Working with any language or platform throws you into the community surrounding it whether you like it or not (even more so if it's an open-source platform), but how do you effectively engage with that community as your business grows? Do you even need to engage with it? What about user groups - are they worth it? Is joining one enough? Should you contribute anything back to the project itself - is that even worthwhile? And when have you done enough? What does it ultimately mean to belong to a technology community?
In this talk, we’ll look at how an empowered community enabled WordPress to grow to dominate 24.9% of the internet, along with a few case studies such as the exponential growth of the community surrounding WooCommerce and what that has done for the growth of the product itself.
## Bio
Hugh Lashbrooke is long-time member of both the PHP and WordPress communities. As the Woo Community Engagement Manager
@hlashbrooke
hlashbrooke / functions.php
Last active February 8, 2018 15:48
Seriously Simple Podcasting: Add blog categories to podcast episodes (frontend).
add_action( 'pre_get_posts', 'ssp_add_podcast_to_category_archives' );
function ssp_add_podcast_to_category_archives( $query ){
if( is_admin() ) {
return;
}
if( $query->is_tax('category') ) {
$query->set('post_type', array( 'post', 'podcast' ) );
}
@hlashbrooke
hlashbrooke / cache-exclusion
Last active November 11, 2015 11:41
Seriously Simple Podcasting: String to exclude episode files from W3 Total Cache as well as WP Super Cache
/podcast-download/.+
/podcast-player/.+
@hlashbrooke
hlashbrooke / custom.css
Created May 18, 2015 08:21
Custom CSS for WordCamp Cape Town 2013 using Twenty Twelve as a base: https://capetown.wordcamp.org/2013/ - useful for getting a new WordCamp site design off the ground more quickly.
/*
* Custom CSS for WordCamp Cape Town 2013
* Base theme: Twenty Twelve
*/
html {
background: #000000;
}
body.custom-font-enabled {
@hlashbrooke
hlashbrooke / custom.css
Created May 18, 2015 08:20
Custom CSS for WordCamp Cape Town 2014 using Twenty Twelve as the base: https://capetown.wordcamp.org/2014/ - useful for getting a new WordCamp site design off the ground more quickly.
/*
* Custom CSS for WordCamp Cape Town 2014
* Base theme: Twenty Twelve
*/
/* Menu tickets link highlight (change ID once menu item is live) */
#menu-item-283629 a {
font-weight: bold;
color: #d54e21;
border-bottom: 2px solid #d54e21;
@hlashbrooke
hlashbrooke / functions.php
Created April 23, 2015 12:07
WordPress: Add oEmbed support for Speaker Deck presentations.
add_action( 'init', 'add_speakerdeck_oembed' );
function add_speakerdeck_oembed() {
wp_oembed_add_provider( 'https://speakerdeck.com/*/*', 'https://speakerdeck.com/oembed.json' );
}
@hlashbrooke
hlashbrooke / Slack theme for WooThemes
Created March 30, 2015 07:56
Slack theme for WooThemes. To use this theme, go to the 'Sidebar Theme' tab in your preferences pane and add this text to the custom theme field.
#42A2CE,#255A8C,#71B02F,#FFFFFF,#255A8C,#E6E6E6,#71B02F,#71B02F