Developer
Hooks & Filters
OAdsorravo.com/docs/oads/hooks-filters
Actions
| Hook | Args | Description |
oads_zone | string $section, string $format | Render an ad zone. Call via do_action('oads_zone', 'blog', 'card') |
oads_save_ad_meta | int $ad_id, array $post_data | Fires after an ad is saved via AJAX. Use to save custom meta. |
oads_admin_type_options | — | Add <option> tags to the ad type select in the modal. |
oads_admin_modal_type_fields | — | Add custom type field sections to the ad editor modal. |
Filters
| Filter | Args | Description |
oads_render_ad_card | string $html, WP_Post $ad, string $section, array $data | Override/extend rendered card HTML for unknown types. |
oads_render_inline_ad | string $html, WP_Post $ad, string $section, array $data | Override/extend rendered inline ad HTML. |
oads_ad_js_data | array $data, int $ad_id | Extend ad data passed to the admin JS oadsAdData object. |