Created
September 15, 2015 20:32
-
-
Save rinatkhaziev/89e685dc11c5820c5165 to your computer and use it in GitHub Desktop.
Multiple sizes per slot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'acm_ad_tag_ids', 'my_acm_ad_tag_ids' ); | |
function my_acm_ad_tag_ids( $tag_ids ) { | |
$tag_ids[] = array( | |
'tag' => 'flex-leaderboard', // tag_id | |
'url_vars' => array( | |
'sizes' => array( | |
array( | |
'width' => '728', | |
'height' => '90' | |
), | |
array( | |
'width' => '970', | |
'height' => '66' | |
), | |
), | |
'fold' => 'atf', // %fold% token | |
'my_custom_token' => 'something' // %my_custom_token% will be replaced with 'something' | |
), | |
); | |
return $tag_ids; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment