# AI Writer, SEO & AI Search and Social hooks

> Public functions, actions and filters of AI Writer, SEO & AI Search and Social: published content, tracked links, llms.txt, schema, redirects, page checks and social posts.

Source: https://www.wpbot.pro/help/dev-growth-suite-hooks/  
Section: Developers › Hooks  
Updated: 2026-11-26

These three tools cover the **Create**, **Get found** and **Share** steps of the [Growth Loop](/help/the-growth-loop/). Their hooks let you pass new content to other systems and adjust what WPBot prints for search engines and AI assistants.

## AI Writer

Prefix `qcld_wpbot_writer/`. Capabilities `wpbot_writer_view`, `wpbot_writer_use`, `wpbot_writer_publish`, `wpbot_writer_settings`.

| Hook / function | Type | Parameters | What it is for |  |
| --- | --- | --- | --- | --- |
| `qcld_wpbot_writer_get_package( $post_id )` | function | `int $post_id` | The content package of a finished piece (or `null`) |  |
| `qcld_wpbot_writer_open_brief_url( $brief )` | function | `array $brief` | An admin URL that opens AI Writer filled in with your brief (kept one hour) |  |
| `qcld_wpbot_writer/content_finalized` | action | `int $post_id`, `array $brief`, \`array\\ | null $package\` | AI Writer finished writing a piece |
| `qcld_wpbot_writer/content_published` | action | `int $post_id`, `array $package` | A piece written with AI Writer was published |  |
| `qcld_wpbot_writer/channel_versions_ready` | action | `int $post_id`, `array $versions` | Versions of a piece for social networks are ready |  |
| `qcld_wpbot_writer/channels` | filter | `array $channels` | Networks, their limits and rules |  |
| `qcld_wpbot_writer/idea_sources` | filter | `array $sources` | Sources of the Topic Finder |  |
| `qcld_wpbot_writer/utm_args` | filter | `array $utm`, `string $url`, `array $args` | UTM parameters added to tracked links |  |

### Example: tell your team when AI Writer publishes

```
add_action( 'qcld_wpbot_writer/content_published', function ( $post_id, $package ) {
	wp_mail( 'editors@example.com', 'New article: ' . get_the_title( $post_id ), get_permalink( $post_id ) );
}, 10, 2 );
```

## SEO & AI Search

Prefix `qcld_wpbot_seo/`. Pro hooks use `qcld_wpbot_seo_pro/`.

| Hook | Type | Parameters | What it is for |  |
| --- | --- | --- | --- | --- |
| `qcld_wpbot_seo/seo_plugin` | filter | `string $id` | The SEO plugin WPBot writes titles and descriptions through (`''` when none) |  |
| `qcld_wpbot_seo/schema_output` | filter | `bool $print` | Whether WPBot prints basic schema when no SEO plugin does (default `true`) |  |
| `qcld_wpbot_seo/schema_graph` | filter | `array $nodes` | The schema nodes WPBot prints, for example LocalBusiness |  |
| `qcld_wpbot_seo/legacy_faq_schema` | filter | `bool $print`, `int $post_id`, `array $items` | Whether the FAQ schema kept from the old SEO Analyzer is printed |  |
| `qcld_wpbot_seo/llms_txt_gated` | filter | `bool $gated`, `WP_Post $post` | Whether a post is members-only and stays out of llms.txt. Membership plugins answer here |  |
| `qcld_wpbot_seo/llms_txt_refusal` | filter | `string $why`, `WP_Post $post` | Another reason to leave a page out of llms.txt; `''` keeps it |  |
| `qcld_wpbot_seo/llms_txt_description` | filter | `string $text`, `int $post_id` | The description of a page in llms.txt |  |
| `qcld_wpbot_seo/llms_txt_url` | filter | `string $url`, `int $post_id` | The address listed for a page |  |
| `qcld_wpbot_seo/ai_crawlers` | filter | `array $bots` | The AI crawlers the readiness check knows |  |
| `qcld_wpbot_seo/redirect_match` | filter | \`array\\ | null $match`, `string $path\` | Your own redirect match for a path |
| `qcld_wpbot_seo/redirects_handled` | filter | `bool $handled` | Whether another plugin handles redirects |  |
| `qcld_wpbot_seo/issue_checks` | filter | `array $checks` | On-page and technical checks (`id => callable`) |  |
| `qcld_wpbot_seo/page_issues` | filter | `array $issues`, `array $page` | Issues found on a page, after the built-in checks |  |
| `qcld_wpbot_seo/map_post_types` | filter | `string[] $types` | Post types in the Topic Map (default `post`, `page`, `product`) |  |
| `qcld_wpbot_seo/report_sections` | filter | `array $sections`, `array $facts` | Extra sections in the weekly email: `title`, `rows` (label, value, url), `note` |  |
| `qcld_wpbot_seo/email_footer` | filter | `string $text` | Footer of SEO emails (links allowed) |  |

### Example: keep a members area out of llms.txt

```
add_filter( 'qcld_wpbot_seo/llms_txt_gated', function ( $gated, $post ) {
	return $gated || has_term( 'members', 'category', $post );
}, 10, 2 );
```

## Social

Prefix `qcld_wpbot_social/`; the Master module adds `qcld_wpbot_social_pro/`.

| Hook / function | Type | Parameters | What it is for |
| --- | --- | --- | --- |
| `qcld_wpbot_social/started` | action | – | Social started (check the mode: `free` or `master`) |
| `qcld_wpbot_social/networks` | filter | `Network[] $networks` | The networks Social can post to |
| `qcld_wpbot_social/post_saved` | action | `int $id`, `array $input`, `string $status`, `$schedule_at`, `int[] $account_ids` | A post was saved or scheduled |
| `qcld_wpbot_social/published` | action | `array $row`, `array $fields` | A post went out on a network |
| `qcld_wpbot_social/publish_failed` | action | `array $row`, `array $fields` | A post could not be published |
| `qcld_wpbot_social/manual_due` | action | `array $row`, `array $account` | A "Post yourself" item is due (for example WhatsApp) |
| `qcld_wpbot_social_pro/inbox_replied` | action | `$event_id`, `$network`, `$kind` | A reply was sent from the social Inbox |
| `qcld_wpbot_social_pro/attribution_cookie` | filter | `bool $allowed` | Whether the cookie that links a visit to a social post may be set (default: the WP Consent API's "statistics" consent when present) |
| `qcld_wpbot_social_get_dashboard_data()` | function | – | Numbers for dashboards |

Social never sets cookies in its free version and sends nothing about your visitors to the networks.

## Availability

- **AI Writer**  hooks: every edition, including WPBot Free. AI Writer Pro features come with every WPBot Pro edition.
- **SEO & AI Search**  hooks: every edition, including WPBot Free. `qcld_wpbot_seo_pro/` hooks need **Professional**  or **Master** .
- **Social**  hooks: every edition, including WPBot Free (core features). `qcld_wpbot_social_pro/` hooks and `qcld_wpbot_social_get_dashboard_data()` need **Master** .
