Instant downloads • Annual updates
DocsDeveloper APISera Hooks & Filters Reference

Sera Hooks & Filters Reference

2026-03-0112 min read

Sera Hooks & Filters Reference

Sera provides an extensive set of WordPress hooks and filters that allow developers to customize and extend functionality.

Sera Core Hooks

Actions

php
// Fired when a spoke plugin registers with the hub
do_action('sera_spoke_registered', $spoke_slug, $spoke_data);

// Fired when the AI Engine completes a request
do_action('sera_ai_response', $response, $provider, $messages);

// Fired when a command is executed
do_action('sera_command_executed', $command_name, $args, $result);

// Fired when an alert is created
do_action('sera_alert_created', $alert_type, $alert_data, $spoke_slug);

// Fired during the update check cycle
do_action('sera_register_updaters', $updater_registry);

Filters

php
// Modify AI Engine messages before sending to the provider
apply_filters('sera_ai_messages', $messages, $provider);

// Modify AI Engine response before returning
apply_filters('sera_ai_response_content', $content, $provider);

// Modify the hub dashboard data
apply_filters('sera_dashboard_data', $data);

// Modify the alert center notifications
apply_filters('sera_alerts', $alerts, $spoke_slug);

// Modify Knowledge Base search results
apply_filters('sera_kb_search_results', $results, $query);

CLS Guard Hooks

php
// Modify CLS Guard CSS output
apply_filters('sera_cls_guard_css', $css);

// Modify ad container selectors
apply_filters('sera_cls_guard_ad_selectors', $selectors);

// Modify anchor ad height
apply_filters('sera_cls_guard_anchor_height', $height);

// Fired after CLS Guard CSS is injected
do_action('sera_cls_guard_loaded');

CLS Guard Pro Hooks

php
// Modify auto-generated CSS fixes
apply_filters('sera_cls_pro_auto_fixes', $fixes, $page_url);

// Modify per-page overrides
apply_filters('sera_cls_pro_overrides', $overrides, $page_id);

// Fired when a CLS event is recorded
do_action('sera_cls_pro_shift_detected', $shift_data, $page_url);

// Fired when Learning Mode generates recommendations
do_action('sera_cls_pro_learning_complete', $recommendations);

Sentinel Hooks

php
// Modify firewall rules before processing
apply_filters('sera_sentinel_firewall_rules', $rules);

// Modify the IP whitelist
apply_filters('sera_sentinel_ip_whitelist', $whitelist);

// Fired when a login attempt is blocked
do_action('sera_sentinel_login_blocked', $ip, $username, $reason);

// Fired when malware is detected
do_action('sera_sentinel_malware_found', $file_path, $signature);

// Modify security hardening options
apply_filters('sera_sentinel_hardening', $options);

Pulse Hooks

php
// Modify health score calculation
apply_filters('sera_pulse_health_score', $score, $metrics);

// Modify database optimization tasks
apply_filters('sera_pulse_db_tasks', $tasks);

// Fired after database optimization completes
do_action('sera_pulse_db_optimized', $results);

// Fired when uptime check fails
do_action('sera_pulse_downtime_detected', $check_data);

// Modify cron job display data
apply_filters('sera_pulse_cron_data', $cron_events);

AI Writer Hooks

php
// Modify AI writing suggestions
apply_filters('sera_writer_ai_suggestions', $suggestions, $content);

// Modify pipeline stages
apply_filters('sera_writer_pipeline_stages', $stages);

// Fired when content moves between pipeline stages
do_action('sera_writer_stage_changed', $post_id, $old_stage, $new_stage);

// Modify SEO analysis results
apply_filters('sera_writer_seo_analysis', $analysis, $post_id);

// Modify content templates
apply_filters('sera_writer_templates', $templates);

AI Sitemap Hooks

php
// Modify sitemap URLs before generation
apply_filters('sera_sitemap_urls', $urls, $content_type);

// Modify sitemap bucket size
apply_filters('sera_sitemap_bucket_size', $size);

// Fired after sitemap rebuild
do_action('sera_sitemap_rebuilt', $sitemap_data);

// Fired after IndexNow submission
do_action('sera_sitemap_indexnow_submitted', $urls, $response);

// Modify crawl analysis results
apply_filters('sera_sitemap_crawl_analysis', $analysis);

// Modify news sitemap entries
apply_filters('sera_sitemap_news_entries', $entries);