AI Page & Blog Generator for Local SEO 1.3.1 has 12 actions and 25 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when AI Page & Blog Generator for Local SEO fires an action
add_action( 'writrex_agent_applied', function( $action_id, $row ) {
// Your code runs here.
}, 10, 2 );
// Change a value AI Page & Blog Generator for Local SEO is about to use
add_filter( 'writrex_agent_draft_after', function( $after, $args ) {
// Change $after here.
return $after;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires after the agent applied an approved change. */ do_action( 'writrex_agent_applied', $action_id, $row ); -
/** * Fires after the agent module has started. Pro hooks its extras here. */ do_action( 'writrex_agent_booted' ); -
/** * Lets Writrex add custom fields and terms to a new draft (Pro). */ apply_filters( 'writrex_agent_draft_after', $after, $args ); -
/** * Fires after a new draft was created. */ do_action( 'writrex_agent_draft_created', (int) $id, $value ); -
/** * Pro registers its extra handlers here. Not a public extension point: every * handler must keep the approval and undo guarantees. */ apply_filters( 'writrex_agent_handlers', $list ); -
/** * Lets cross-page checks added through writrex_agent_report_cross_page_issues * decide whether their issue still applies (a page scan cannot see them). */ apply_filters( 'writrex_agent_issue_still_open', $still, $row ); -
/** * Lets a site mark custom routes as valid. */ apply_filters( 'writrex_agent_known_path', false, $path ); -
/** * Writrex (Pro) registers its extra providers here. */ apply_filters( 'writrex_agent_providers', $list ); -
/** * Fires after Writrex asked page caches to drop a page, for caches it does not * know. */ do_action( 'writrex_agent_purge_page_cache', $post_id, $url ); -
/** * Writrex adds its own cross-page checks (internal links) here. */ apply_filters( 'writrex_agent_report_cross_page_issues', array(), $report_id ); -
/** * Lets later parts of the module (reports, chat) add their routes. */ do_action( 'writrex_agent_rest_routes', self::NS ); -
/** * Later phases and Pro add tools here. Each must keep the read/propose * contract: no tool may change the site. "manage" tools only change the * agent's own proposals (withdraw), never site content. */ apply_filters( 'writrex_agent_tools', $list ); -
/** * Filters the resolved generation settings before any content is requested. */ apply_filters( 'writrex_lite_generation_overrides', $merged_overrides, $keyword, $area, $content_type ); -
/** * Filters the rendered page markup before it is sanitised and output. */ apply_filters( 'writrex_lite_rendered_page', $html, $slots, $meta ); -
do_action( 'litespeed_control_set_nocache', 'Writrex agent REST' ); -
do_action( 'breeze_clear_all_cache' ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'litespeed_purge_post', $post_id ); -
do_action( 'wpfc_clear_all_cache' ); -
do_action( 'wpfc_clear_post_cache_by_id', false, $post_id ); -
apply_filters( 'writrex_agent_blocked_post_types', $list ); -
apply_filters( 'writrex_agent_extra_settings', array() ); -
apply_filters( 'writrex_agent_gemini_endpoint', self::BASE ); -
apply_filters( 'writrex_agent_history_days', $default ); -
apply_filters( 'writrex_agent_max_steps', Writrex_Agent_Edition::is_pro() ? 16 : 8 ); -
apply_filters( 'writrex_agent_rate_limit', 40 ); -
apply_filters( 'writrex_agent_scan_post_types', array_values( $types ) ); -
apply_filters( 'writrex_agent_system_prompt', $prompt, $conversation ); -
do_action( 'writrex_agent_undone', (int) $row['id'], $row ); -
apply_filters( 'writrex_breadcrumb_handled_elsewhere', $handled ); -
apply_filters( 'writrex_lite_debug_logging_enabled', $enabled ); -
apply_filters( 'writrex_lite_gemini_busy_fallback', $enabled ); -
apply_filters( 'writrex_lite_gemini_busy_fallback_limit', 3 ); -
apply_filters( 'writrex_lite_gemini_busy_fallback_order', $preferred, $exclude_model ); -
apply_filters( 'writrex_lite_gemini_busy_retries', 2 ); -
apply_filters( 'writrex_lite_section_definitions', array( 'hero' => array('label' => 'Hero', 'marker' => '<!-- HERO -->', 'locked' => true), 'intro' => array('label' => 'Intro / Local Insight', 'marker' => '<!-- INTRO -->', 'locked' => true), 'features' => array('label' => 'Features / Benefits', 'marker' => '<!-- FEATURES -->', 'locked' => false), 'process' => array('label' => 'Process', 'marker' => '<!-- PROCESS -->', 'locked' => false), 'incl... );
Generated from AI Page & Blog Generator for Local SEO's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: