Skip to content

Instantly share code, notes, and snippets.

View DeveloperWil's full-sized avatar

Wil Brown DeveloperWil

View GitHub Profile
@DeveloperWil
DeveloperWil / ZPD Contract.md
Last active July 29, 2023 22:50
The latest version of my ‘killer contract’ for web designers and developers

Zero Point Development Contract

  • Revised date: November 5th, 2017

Between [company name]

And [customer name].

/** Jetpack Share Buttons **/
function zpd_add_jetpack_share_buttons(){
remove_filter( 'the_content', 'sharing_display', 19 );
remove_filter( 'the_excerpt', 'sharing_display', 19 );
if ( function_exists( 'sharing_display' ) ) {
echo sharing_display();
}
}
add_action( 'genesis_before_post_content', 'zps_add_jetpack_share_buttons' ); /* Old Genesis */
@DeveloperWil
DeveloperWil / code-snippet-1.php
Last active August 10, 2017 05:12 — forked from zeropointdevelopment/code-snippet-1.php
[WordPress] Code from our blog post Adding Custom Image Sizes to WordPress 3.5 Media Manager - https://zeropointdevelopment.com/adding-custom-image-sizes-to-wordpress-3-5-media-manager/
// Add new image sizes
function zpd_insert_custom_image_sizes( $image_sizes ) {
// get the custom image sizes
global $_wp_additional_image_sizes;
// if there are none, just return the built-in sizes
if ( empty( $_wp_additional_image_sizes ) )
return $image_sizes;
// add all the custom sizes to the built-in sizes
foreach ( $_wp_additional_image_sizes as $id => $data ) {