Created
February 21, 2017 22:55
-
-
Save brandondove/a02c15897cb6fff31dc661da7560068d to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Indicates that the "clicks" column is sortable for the AdSanity post list in the WordPress Dashboard. | |
*/ | |
function example_adsanity_ads_sortable_posts_columns( $sortable_columns = array() ) { | |
$sortable_columns['clicks'] = 'clicks'; | |
return $sortable_columns; | |
} | |
add_filter( 'adsanity_ads_sortable_posts_columns', 'example_adsanity_ads_sortable_posts_columns' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment