AnWP Tennis Leagues 0.9.0 has 21 actions and 34 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 AnWP Tennis Leagues fires an action
add_action( 'anwptl/draw/generated', function( $stage_id, $match_ids ) {
// Your code runs here.
}, 10, 2 );
// Change a value AnWP Tennis Leagues is about to use
add_filter( 'anwptl/admin/app_payload', function( $payload ) {
// Change $payload here.
return $payload;
}, 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
-
/** * Fires once after a draw's bracket was generated, with every row written. */ do_action( 'anwptl/draw/generated', $stage_id, $match_ids ); -
/** * Fires after a Tennis Leagues post changed status (publish, draft, trash, * untrash). On a create it fires before the row exists; a listener reading the * row finds none, and save_data follows once it lands. */ do_action( "anwptl/{$entity}/post_status_changed", (int) $post->ID, (string) $new_status, (string) $old_status ); -
/** * Fires before an entity row is deleted. */ do_action( "anwptl/{$this->entity_slug}/before_delete", $entity_id, $row ); -
/** * Fires after an entity row is deleted. */ do_action( "anwptl/{$this->entity_slug}/deleted", $entity_id ); -
/** * Fires after an entity row is inserted or updated. */ do_action( "anwptl/{$this->entity_slug}/save_data", $entity_id, $data, $is_new ); -
/** * Filter the bootstrap payload handed to the core admin Vue bundle. */ apply_filters( 'anwptl/admin/app_payload', $payload ); -
/** * Filter the bootstrap payload for an entity metabox form. */ apply_filters( 'anwptl/admin/form_payload', $payload, $post_id, $db->get_entity_slug() ); -
/** * Filter the markup of the single-page block templates. */ apply_filters( 'anwptl/block_template/content', $content ); -
/** * Filter what a block may print, for a template override that needs a tag or * attribute the plugin's own templates don't use. */ apply_filters( 'anwptl/blocks/allowed_html', $allowed ); -
/** * Filter whether a new competition gets its current season, and every new * season its default stage. */ apply_filters( 'anwptl/competition/auto_setup', true, $competition_id, $step ); -
/** * Filter the default stage type per competition type. */ apply_filters( 'anwptl/competition/default_stage_types', self::DEFAULT_STAGE_TYPES ); -
/** * Filter the competition types the write doors accept. */ apply_filters( 'anwptl/competition/writable_types', self::CORE_TYPES ); -
/** * Filter the country list offered by every country field. */ apply_filters( 'anwptl/config/countries', $countries ); -
/** * Filter a single resolved preset. */ apply_filters( 'anwptl/config/preset', $found, $sport ); -
/** * Filter the full preset set. */ apply_filters( 'anwptl/config/presets', $presets ); -
/** * Core is loaded and its hooks are registered. Premium hooks() runs at * plugins_loaded:15, after this action. */ do_action( 'anwptl/core/loaded', $this ); -
/** * Fires after a court's name changed. */ do_action( 'anwptl/court/renamed', $entity_id ); -
/** * Filter the court surfaces. */ apply_filters( 'anwptl/court/surfaces', $surfaces ); -
/** * Filter whether the entity screens are administrators-only. */ apply_filters( 'anwptl/cpt/admin_only_access', true, $post_type ); -
/** * Filter the registration arguments of one Tennis Leagues post type. */ apply_filters( "anwptl/cpt/args/{$post_type}", $args, $post_type ); -
/** * The More from AnWP card's Pro row. Return null to drop it - Pro does once it * is active - or a row of its own { title, text, label, url }. */ apply_filters( 'anwptl/dashboard/pro_row', array( 'title' => __( 'Coming: Tennis Leagues Pro', 'anwp-tennis-leagues' ), 'text' => __( 'Players enter their own results, email notifications for every result, and box leagues that promote and relegate at season end.', 'anwp-tennis-leagues' ), 'label' => __( 'Get notified', 'anwp-tennis-leagues' ), 'url' => self::URL_GET_NOTIFIED, ) ); -
/** * Fires once after a draw's generated rows were cleared. */ do_action( 'anwptl/draw/cleared', $stage_id, $match_ids ); -
/** * Fires after two lines of a draw were swapped and round 1 rewritten. */ do_action( 'anwptl/draw/lines_swapped', $stage_id, $line_a, $line_b, $match_ids ); -
/** * Fires after a bracket match's outcome was written into a target side - a * winner into the next round, a semifinal loser into the 3rd place match, or 0 * when the source no longer sends anyone. */ do_action( 'anwptl/draw/winner_propagated', (int) $source->id, (int) $target->id, $edge['side'] ); -
/** * Filter whether this site can make a match Live. */ apply_filters( 'anwptl/match/live_enabled', false ); -
/** * Fires after a match moved to another draw. */ do_action( 'anwptl/match/stage_changed', $entity_id, $old_stage_id, $new_stage_id ); -
/** * Filters the competition header's "what's next" action, shown once every * match of the season the status line follows is played. */ apply_filters( 'anwptl/next_steps/whats_next', null, $competition_id, $facts ); -
/** * Fires after the whole page cache of the known plugins was purged - a * Settings > Text save, or renames past the cap. The place for a host or CDN * integration (see anwptl/page_cache/purge_post). */ do_action( 'anwptl/page_cache/purge_all' ); -
/** * Fires after a Tennis Leagues page was purged from the known page caches - * the place for a host or CDN integration (Cloudflare, a host API), or for the * query-arg variants of the page. It runs on shutdown, which on PHP-FPM is * before the response is sent: a remote integration should queue its own async * call here (for example wp_schedule_single_event() with the URLs), not call * its API inline. A ful... */ do_action( 'anwptl/page_cache/purge_post', $post_id ); -
/** * Filter whether the Player form shows the WordPress user link. */ apply_filters( 'anwptl/player/account_link', false, $post_id ); -
/** * Filter whether a sheet can be printed: its Print link shows and its print * view answers. False hides the link and 404s the view. */ apply_filters( 'anwptl/print/enabled', true, $sheet, $args ); -
/** * Filter whether the public script loads on this page. */ apply_filters( 'anwptl/public/enqueue_scripts', $load ); -
/** * Filter whether the public stylesheet loads in this page's head. */ apply_filters( 'anwptl/public/enqueue_styles', $load ); -
/** * Whether anwptl/v1 answers at all. */ apply_filters( 'anwptl/rest/public_access', true, $request ); -
/** * Filter the columns a table exposes to public readers (anwptl/v1, templates, * feeds). */ apply_filters( "anwptl/rest/public_fields/{$stem}", $this->public_fields, $this ); -
/** * Filter the registered shortcodes. */ apply_filters( 'anwptl/shortcodes/register', $shortcodes ); -
/** * Filter the letter seeds a stage entry may carry. */ apply_filters( 'anwptl/stage_entry/seed_letters', self::SEED_LETTERS ); -
/** * Filter the stage types the write doors accept. */ apply_filters( 'anwptl/stage/writable_types', self::CORE_TYPES ); -
/** * Fires after a draw's table was recomputed and committed. */ do_action( 'anwptl/standings/recalculated', $stage_id, $changed ); -
/** * Filter a draw's rows after the matches are counted, before the sort. */ apply_filters( 'anwptl/standings/rows', array_values( $rows ), $stage_id, $rules ); -
/** * Filter the stage types that hold a standings table. */ apply_filters( 'anwptl/standings/stage_types', array( AnwpTL_Types::STAGE_ROUND_ROBIN, AnwpTL_Types::STAGE_GROUP ) ); -
/** * Filter the tiebreaker order a draw is ranked by. */ apply_filters( 'anwptl/standings/tiebreakers', (array) ( $rules['standings_tiebreakers'] ?? array() ), $stage_id, $rules ); -
/** * System Info groups, before they print and copy. Premium adds its own. */ apply_filters( 'anwptl/support/groups', $groups ); -
/** * Fires at the end of the competition page wrapper. */ do_action( 'anwptl/template/competition/after_wrapper', $data ); -
/** * Filter a single page's template data. */ apply_filters( 'anwptl/template/content_data', $view, $entity, $post_id ); -
/** * Filter a template's data just before it renders. */ apply_filters( 'anwptl/template/data', $data, $slug, $name ); -
/** * Filter whether the content template replaces the post content. */ apply_filters( 'anwptl/template/loading_check', true, $post ); -
/** * Fires after the match header on a single match page. */ do_action( 'anwptl/template/match/after_header', $data ); -
/** * Fires at the end of the match page wrapper. */ do_action( 'anwptl/template/match/after_wrapper', $data ); -
/** * Filter the template directories. Premium adds its templates/ at 50. */ apply_filters( 'anwptl/template/paths', $paths ); -
/** * Fires at the end of the player card wrapper. */ do_action( 'anwptl/template/player/after_wrapper', $data ); -
do_action( 'wphb_clear_page_cache' ); -
apply_filters( 'anwptl/page_cache/rename_cap', self::RENAME_CAP ); -
do_action( 'litespeed_purge_all', 'Tennis Leagues' ); -
do_action( 'litespeed_purge_post', $post_id );
Generated from AnWP Tennis Leagues'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: