Advanced: Actions

We have built some custom actions into AdSanity to help developers like yourself extend the default behaviors. Below is a list of actions that we include in the plugin. Custom code can be placed in your theme’s functions.php file or in a custom plugin.

# ads_init

https://gist.github.com/brandondove/586daf3a0691a1ca03a45d8a9687819a

the ads_init function runs when the ads post type is being set up. You could use this hook to register additional taxonomies for example.

# adsanity_before_ad_wrapper

# adsanity_before_ad

# adsanity_after_ad

# adsanity_after_ad_wrapper

# adsanity_before_track_click

# adsanity_before_redirect

Didn't find what you were looking for?

If you're a subscriber to AdSanity and don't find an answer to your specific question please submit a request and our support department will address your issue quickly.