DocsOAdsHooks & Filters
Developer

Hooks & Filters

OAdsorravo.com/docs/oads/hooks-filters

Actions

HookArgsDescription
oads_zonestring $section, string $formatRender an ad zone. Call via do_action('oads_zone', 'blog', 'card')
oads_save_ad_metaint $ad_id, array $post_dataFires after an ad is saved via AJAX. Use to save custom meta.
oads_admin_type_optionsAdd <option> tags to the ad type select in the modal.
oads_admin_modal_type_fieldsAdd custom type field sections to the ad editor modal.

Filters

FilterArgsDescription
oads_render_ad_cardstring $html, WP_Post $ad, string $section, array $dataOverride/extend rendered card HTML for unknown types.
oads_render_inline_adstring $html, WP_Post $ad, string $section, array $dataOverride/extend rendered inline ad HTML.
oads_ad_js_dataarray $data, int $ad_idExtend ad data passed to the admin JS oadsAdData object.

Hooks & Filters — OAds Docs — Orravo