WPMasterToolKit (WPMTK) 2.26.1 has 11 actions and 34 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 WPMasterToolKit (WPMTK) fires an action
add_action( 'wpmastertoolkit_licensing/after_submit_section', function( $action ) {
// Your code runs here.
}, 10, 1 );
// Change a value WPMasterToolKit (WPMTK) is about to use
add_filter( 'wpmastertoolkit_nginx_code_snippets', 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
-
/** * Filter the settings */ apply_filters( 'wpmastertoolkit_nginx_code_snippets', array() ); -
/** * Filters the login URL. */ apply_filters( 'wpmastertoolkit/move_login_url/home_url', home_url( '/', $scheme ) ); -
/** * Fires after the submit section. */ do_action( 'wpmastertoolkit_licensing/after_submit_section', $action ); -
/** * Filter the modules data. */ apply_filters( 'wpmastertoolkit_modules_data', $modules ); -
/** * Filter the modules groups. */ apply_filters( 'wpmastertoolkit_modules_groups', $groups ); -
/** * Filter the modules labels. */ apply_filters( 'wpmastertoolkit_modules_labels', $modules ); -
/** * Filter the onboarding presets before module metadata is attached. */ apply_filters( 'wpmastertoolkit_onboarding_presets', $presets ); -
/** * Temp user prefix */ apply_filters( 'wpmastertoolkit_temporary_login_user_prefix', $this->temp_user_prefix ); -
/** * Allow bypassing the PHP 404 blocking logic. */ apply_filters( 'wpmastertoolkit/block_404_on_php/bypass', false, $current_url ); -
wpmastertoolkit/block_user_registration_from_disposable_email/disposable_emails_domains
filter Copy link Customise this hook/** * Filter the disposable email domains. */ apply_filters( 'wpmastertoolkit/block_user_registration_from_disposable_email/disposable_emails_domains', self::DISPOSABLE_EMAILS_DOMAINS ); -
/** * Filter the logout label. */ apply_filters( 'wpmastertoolkit/clean_up_admin_bar/logout_label', '⏻' ); -
/** * Filter the folders and subfolders to be created. */ apply_filters( 'wpmastertoolkit/folders', $folders ); -
/** * Fires in the modal body */ do_action( 'wpmastertoolkit/hide_admin_notices/modal_body' ); -
/** * Filter the bypass cookie validity. */ apply_filters( 'wpmastertoolkit/maintenance-mode/bypass-cookie-validity', DAY_IN_SECONDS ); -
/** * Filter the disposable email domains. */ apply_filters( 'wpmastertoolkit/maintenance-mode/bypass-param', 'wpmtk-maintenance-bypass' ); -
/** * Filter the preview parameter. */ apply_filters( 'wpmastertoolkit/maintenance-mode/preview-param', 'wpmtk_maintenance_mode_preview' ); -
/** * Filter the additional capability required to access the meta debugger. */ apply_filters( 'wpmastertoolkit/meta_debugger/allowed_capability', '' ); -
/** * Filter the allowed roles to access the meta debugger */ apply_filters( 'wpmastertoolkit/meta_debugger/allowed_roles', array( 'administrator' ) ); -
/** * Fires before redirecting the user to the new login URL. */ do_action( 'wpmastertoolkit/move_login_url/before_redirect', $request ); -
/** * Fires after a user has successfully logged in. */ apply_filters( 'wpmastertoolkit/move_login_url/logged_in_redirect', $redirect_to, $requested_redirect_to, $user ); -
/** * Filter the post types to check for missed schedule posts. */ apply_filters( 'wpmastertoolkit/publish_missed_schedule_posts/post_types', $post_types ); -
wpmastertoolkit/publish_missed_schedule_posts/transient_expiration
filter Copy link Customise this hook/** * Filter the transient expiration time. */ apply_filters( 'wpmastertoolkit/publish_missed_schedule_posts/transient_expiration', 30 * MINUTE_IN_SECONDS ); -
do_action( 'wpmastertoolkit/activity_log/event', $event, $actor, 'comment', (int) $comment->comment_ID, $details ); -
apply_filters( 'wp_image_maybe_exif_rotate', $orientation, $file_path ); -
do_action( 'wp_login', $user->user_login, $user ); -
do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage() ) ); -
apply_filters( 'getimagesize_mimes_to_exts', array( 'image/jpeg' => 'jpg', 'image/png' => 'png', 'image/gif' => 'gif', 'image/bmp' => 'bmp', 'image/tiff' => 'tif', 'image/webp' => 'webp' ) ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'sg_cachepress_purge_cache' ); -
apply_filters( 'surecart_client_license_form_action', '' ); -
apply_filters( 'surecart_licensing_endpoint', 'https://api.surecart.com' ); -
apply_filters( 'surecart_licensing_is_local', $is_local ); -
apply_filters( 'wp_check_post_lock_window', 150 ); -
apply_filters( 'wp_mail_content_type', 'text/html' ); -
apply_filters( "wpmastertoolkit_captcha_{$operation}_limit", $limit ); -
apply_filters( 'wpmastertoolkit_captcha_failure_limit', 20 ); -
apply_filters( 'wpmastertoolkit_count_failed_login', true, $error ); -
apply_filters( 'wpmastertoolkit_dashicons', $dashicons ); -
do_action( 'wpmastertoolkit_licensing/license_activated' ); -
do_action( 'wpmastertoolkit_licensing/license_deactivated' ); -
apply_filters( 'wpmastertoolkit_smtp_mailer_get_body', $this->body, $this->provider ); -
apply_filters( 'wpmastertoolkit_smtp_mailer_get_headers', $this->headers, $this->provider ); -
apply_filters( 'wpmastertoolkit/move_login_url/signup_enable', false ); -
apply_filters( 'wpmtk_white_label_cms_page_chrome_selectors', array( 'header', 'footer', '[role="banner"]', '[role="contentinfo"]', '#masthead', '#colophon', '.site-header', '.site-footer', '.elementor-location-header', '.elementor-location-footer', '.wp-block-template-part > header', '.wp-block-template-part > footer' ) );
Generated from WPMasterToolKit (WPMTK)'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: