Docs /

Hooks and Filters Reference

PHP filters for developers who need to adjust placement behavior beyond the Settings screen.

Most sites won’t need any of this — it’s here for theme developers and agencies handling an integration the Settings screen doesn’t already cover directly.

arp_related_content_hook

Changes which WordPress action hook Related Posts defers to, when “Position vs. theme ad slots” is turned on and your theme isn’t SmartMag or Bunyad (the one theme this plugin auto-detects out of the box). Most sites can use the plain-text “Custom ad-hook name” field on the Settings screen instead of this filter directly — reach for the filter when you need to set the hook conditionally in code rather than as a fixed value.

add_filter( 'arp_related_content_hook', function() {
    return 'your_theme_after_content_hook';
} );

arp_related_content_priority

Sets the priority Ariadne uses when hooking into whatever arp_related_content_hook resolves to. Defaults to 20 — lower it if your theme’s own ad output needs to run even later than that.

add_filter( 'arp_related_content_priority', function() {
    return 5;
} );

arp_cron_loopback_sslverify

Ariadne’s background jobs use a self-request mechanism to keep processing without waiting on site traffic. That internal request skips strict SSL certificate verification by default, since local development environments commonly use a self-signed certificate. On a production host with a real, CA-signed certificate, restore strict verification:

add_filter( 'arp_cron_loopback_sslverify', '__return_true' );

Something not covered here?

Get in touch and describe what you’re trying to integrate with — most one-off theme integrations end up as a filter addition rather than a custom fork.