Skip to content

Instantly share code, notes, and snippets.

@brandondove
Last active February 22, 2017 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandondove/c906fc398ae5dc7479c1035a6dbf788c to your computer and use it in GitHub Desktop.
Save brandondove/c906fc398ae5dc7479c1035a6dbf788c to your computer and use it in GitHub Desktop.
<?php
/**
* Adds new responsive ad unit sizes to the selectable options when creating an ad
*/
function example_adsanity_ad_sizes( $sizes = array() ) {
$sizes['1x3'] = __( '1x3 - Responsive', 'example' );
$sizes['2x3'] = __( '2x3 - Responsive', 'example' );
return $sizes;
}
add_filter( 'adsanity_ad_sizes', 'example_adsanity_ad_sizes' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment