Skip to content

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

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

[price_id]
[price_id]