Skip to content

Instantly share code, notes, and snippets.

@jeremyfelt
Created May 23, 2012 16:41
Show Gist options
  • Save jeremyfelt/2776277 to your computer and use it in GitHub Desktop.
Save jeremyfelt/2776277 to your computer and use it in GitHub Desktop.
ACM Filter examples
<?php
add_filter( 'acm_register_provider_slug', 'unisport_register_acm_provider_slug' );
function unisport_register_acm_provider_slug( $current_providers ) {
$current_providers->unisport_doubleclick = array(
'provider' => 'Unisport_Doubleclick_ACM_Provider',
'table' => 'Unisport_Doubleclick_ACM_WP_List_Table' );
return $current_providers;
}
add_filter( 'acm_provider_slug', 'unisport_set_acm_provider_slug' );
function unisport_set_acm_provider_slug() {
return 'unisport_doubleclick';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment