AI Summaries & Share Buttons 2.8.1 has 1 actions and 20 filters, read directly from its source code on Nov 18, 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 Summaries & Share Buttons fires an action
add_action( 'ayudawp_aiss_summary_generated', function( $post_id, $provider ) {
// Your code runs here.
}, 10, 2 );
// Change a value AI Summaries & Share Buttons is about to use
add_filter( 'ayudawp_aiss_content_anchors', function( $defaults ) {
// Change $defaults here.
return $defaults;
}, 10, 1 );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
-
/** * Filter where the blocks placed before and after the content are printed. */ apply_filters( 'ayudawp_aiss_content_anchors', $defaults ); -
/** * Filters the per-provider model preference patterns for "Automatic" mode. */ apply_filters( 'ayudawp_aiss_default_models', array( 'anthropic' => array( 'haiku', 'sonnet', 'opus' ), 'google' => array( 'flash-lite', 'flash', 'pro' ), 'openai' => array( 'nano', 'mini' ), ) ); -
/** * Tunable weights. Filterable so themes/plugins can adjust them without * forking the algorithm. */ apply_filters( 'ayudawp_aiss_extractive_weights', array( 'lead_bonus' => 1.1, 'title_weight' => 3, 'min_words' => 5, 'similarity_threshold' => 0.5, ) ); -
/** * Filter the buttons shown in the floating bar. */ apply_filters( 'ayudawp_aiss_floating_bar_buttons', $buttons, $post_id ); -
/** * Filter the domain sent to Google's preferred sources tool. */ apply_filters( 'ayudawp_aiss_google_preferred_domain', $domain ); -
/** * Filter the destinations the buttons can be placed in. */ apply_filters( 'ayudawp_aiss_placement_targets', $targets, $key ); -
/** * Filter whether the floating bar renders on this request. */ apply_filters( 'ayudawp_aiss_show_floating_bar', true, (int) $post_id ); -
/** * Filters the custom content printed inside the summary box. */ apply_filters( 'ayudawp_aiss_summary_custom_html', $html, $post_id ); -
/** * Fires after an automatic summary is generated and stored. */ do_action( 'ayudawp_aiss_summary_generated', $post_id, $provider ); -
/** * Filters the language the AI summary of a post is written in. */ apply_filters( 'ayudawp_aiss_summary_locale', is_string( $locale ) ? $locale : '', $post_id ); -
/** * Filter the minimum number of words a post needs for a summary. */ apply_filters( 'ayudawp_aiss_summary_min_words', 50 ); -
/** * Filter the UTM parameters added to a shared URL. */ apply_filters( 'ayudawp_aiss_utm_args', $args, $platform, $url ); -
apply_filters( 'ayudawp_aiss_ai_retry_attempts', 2 ); -
apply_filters( 'ayudawp_aiss_extractive_stopwords', ayudawp_aiss_get_stopwords() ); -
apply_filters( 'ayudawp_aiss_frontend_hourly_cap', 60 ); -
apply_filters( 'ayudawp_aiss_max_model_candidates', 3 ); -
apply_filters( 'ayudawp_aiss_summary_before_content_priority', 1000 ); -
apply_filters( 'ayudawp_aiss_summary_noisy_tags', array( 'table', 'pre', 'code', 'figcaption', 'figure', 'form', 'button', 'nav', 'script', 'style', 'iframe', 'svg', 'audio', 'video' ) ); -
apply_filters( 'ayudawp_aiss_trusted_proxies', array() ); -
apply_filters( 'ayudawp_aiss_trusted_proxy_header', '' ); -
apply_filters( 'wpml_post_language_details', null, $post_id );
Generated from AI Summaries & Share Buttons'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: