Skip to content

Filter Hooks ​

Filter hooks let you modify data or output before WP Social Ninja processes or displays it — change feed limits, register a platform, tune an API call, or replace a template's HTML. Always return a value from a filter callback.

All hooks are in the wpsocialreviews/ namespace unless noted. Each reference page documents its filters as collapsible entries with When it runs, Parameters, Source, and Usage.

Categories:

  1. App & Admin Variables — data passed to the admin SPA and public JS
  2. Platform Registry — register and describe platforms
  3. Rendering & Template HTML — replace whole template blocks
  4. API & Feed Tuning — limits, fields, and endpoints per platform
  5. Permissions & Licensing — capabilities and license flow
  6. Sanitization — post-process sanitized input
  7. Media & Image Optimization — download limits, resize throttle, stored sizes
  8. Pro: AI & Review Forms — AI summaries, form validation, imports

Using a filter ​

php
add_filter('wpsocialreviews/facebook_feeds_limit', function ($limit) {
    return 25;
});

Filter names change

Names, argument counts, and locations change between releases. Confirm against the source (the file:line where the filter is applied) before shipping code that depends on one.

WP Social Ninja Developer Documentation