Neatplug Notify for Telegram 1.0.0 has 7 actions and 20 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 Neatplug Notify for Telegram fires an action
add_action( 'neatplug_ntg_chat_migrated', function( $arg1, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value Neatplug Notify for Telegram is about to use
add_filter( 'https_local_ssl_verify', function( $value ) {
// Change $value here.
return $value;
}, 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
-
/** * This filter is documented in wp-includes/class-wp-http-streams.php */ apply_filters( 'https_local_ssl_verify', false ); -
/** * Renders a tab added through neatplug_ntg_admin_tabs. */ do_action( "neatplug_ntg_admin_tab_{$tab}" ); -
/** * Extra settings tabs, slug => label. The Pro add-on adds its own here and * renders it on neatplug_ntg_admin_tab_{slug}. */ apply_filters( 'neatplug_ntg_admin_tabs', array() ); -
/** * Bot API address. The Pro add-on sets the user's own address (a proxy) for * hosts that cannot reach api.telegram.org. */ apply_filters( 'neatplug_ntg_api_url', self::API_URL ); -
/** * Text of an event's message for one chat, like a chat's own template. */ apply_filters( 'neatplug_ntg_chat_message', $text, (array) $recipient, $event, $object_id, $context ); -
/** * Fires when Telegram reports that a group got a new ID. */ do_action( 'neatplug_ntg_chat_migrated', (string) $old_id, (string) $new_id ); -
/** * More sendMessage parameters of an event's message for one chat, like the * product image of a chat's own template. */ apply_filters( 'neatplug_ntg_chat_params', $params, (array) $recipient, $event, $object_id, $context ); -
/** * More fields of the Connection tab, inside its form. Their values come to * neatplug_ntg_sanitize_connection. */ do_action( 'neatplug_ntg_connection_fields', $settings ); -
/** * Event in a log row, like "New order #50". Integrations name the object. */ apply_filters( 'neatplug_ntg_event_label', $label, $event, $object_id ); -
/** * Names of events in the log. Integrations add their own. */ apply_filters( 'neatplug_ntg_event_labels', $labels ); -
/** * More events on the Events tab, inside its form, before Message content. * Their values come to neatplug_ntg_sanitize_events. */ do_action( 'neatplug_ntg_events_fields', $settings ); -
/** * Fires when a message failed for good. The Pro add-on sends a copy to its * fallback chat. */ do_action( 'neatplug_ntg_failed', $id, $row, $result ); -
/** * Text of a form submission message, with Telegram HTML markup. */ apply_filters( 'neatplug_ntg_form_message', $text, $contact_form, $submission ); -
/** * Fires after the plugin modules are loaded. The Pro add-on hooks in here. */ do_action( 'neatplug_ntg_loaded' ); -
/** * Groups of the Message content switches: [ title, [ key => label ], * description ]. Add-ons may change labels and descriptions; the keys are * fixed. */ apply_filters( 'neatplug_ntg_message_groups', $groups ); -
/** * Language of the messages sent to Telegram. */ apply_filters( 'neatplug_ntg_message_locale', '' !== $locale ? $locale : 'en_US' ); -
/** * More sendMessage parameters of an event's message, like reply_markup. */ apply_filters( 'neatplug_ntg_message_params', $params, $event, $object_id ); -
/** * Statuses that make an order new, as in WooCommerce's "New order" email. */ apply_filters( 'neatplug_ntg_new_order_statuses', array( 'processing', 'on-hold', 'completed' ) ); -
/** * Text of an order message, with Telegram HTML markup. */ apply_filters( 'neatplug_ntg_order_message', $text, $order, $event, $from, $to ); -
/** * Chats that get the message of an event. */ apply_filters( 'neatplug_ntg_recipients', $recipients, $event, $object_id, $context ); -
/** * Fields that add-ons put on the Connection tab are saved here, before the * token is checked, so a new Telegram API address is used for that check. */ apply_filters( 'neatplug_ntg_sanitize_connection', $settings, $input ); -
/** * Fields that add-ons put on the Events tab are saved here. */ apply_filters( 'neatplug_ntg_sanitize_events', $settings, $input ); -
/** * More lines of the warning while Pro is active, like a link to its Telegram * API address field. */ do_action( 'neatplug_ntg_unreachable_notice' ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_original_element_id', null, $form_id, 'post_' . self::POST_TYPE ); -
apply_filters( 'wpml_post_language_details', null, $form_id );
Generated from Neatplug Notify for Telegram'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: