The version WPMasterToolKit 2.25.0 introduces four new Pro modules dedicated to managing external resources, media, the active theme, and tracking tools.
This update introduces Google Font Localization, Media Trash, No Theme Switch and Pixel Tag Manager. It also improves Child Theme Generator in order to better account for permissions related to theme changes and to secure generation actions.
Here are the details of what's new in WPMasterToolKit 2.25.0.
Local Google Font: Host Google Fonts Directly on WordPress
The first new module in this version is Google Font Localization.
Many WordPress themes and plugins use Google Fonts to load their fonts. In a typical setup, the visitor's browser must retrieve these resources from Google's servers, specifically via fonts.googleapis.com and fonts.gstatic.com.
Local Google Font allows you to download these fonts and host them directly on your WordPress site.
The module detects the Google Fonts stylesheets used by WordPress, downloads the necessary WOFF2 files, and generates a local CSS sheet. Once this version is validated, the remote URL is automatically replaced with the resource hosted on your own server.
This approach reduces reliance on external services and facilitates configurations in which fonts must be served directly from the site's domain.
Automatic detection and hosting
Local Google Font can automatically detect Google Fonts loaded through standard WordPress mechanisms.
The option Automatic hosting, which is enabled by default, then automatically hosts a new source when it is discovered.
A tool Scan Homepage is also available to analyze the homepage and immediately identify the Google Fonts style sheets used on it.
Each source has its own status in WPMasterToolKit: discovered, hosted locally, or failed. It is also possible to rebuild the local files or delete them individually.
The module performs several checks before using a local version to prevent a remote resource from being replaced by an incomplete or invalid version.
Media Trash: A Real Trash Can for the WordPress Media Library
Accidentally deleting an image, a PDF, or another file from the media library can have more serious consequences than deleting an article or a page.
The new module Media Trash provides additional protection by enabling and utilizing WordPress's built-in media trash mechanism.
Instead of being permanently deleted right away, media files can thus be temporarily stored in the Recycle Bin and restored in case of an error.
A configurable shelf life
Media Trash allows you to set a retention period ranging from 1 and 365 days, with a default value of 90 days.
WPMasterToolKit also takes into account WordPress’s global cleanup mechanism. If the specified time limit for a media file has not yet been reached, the plugin prevents its permanent deletion when the trash is emptied.
An automatic cleanup is performed daily to remove media that have exceeded their retention period. To avoid processing an excessive number of files in a single operation, the cleanup is limited to 100 media items per run.
If a permanent deletion fails, the module waits one week before attempting it again on the same storage medium.
Media Trash thus provides an additional safety net while preventing the indefinite storage of files that are no longer needed.
No Theme Switch: Lock the Active WordPress Theme
Accidentally changing the theme of a live site can immediately alter its appearance and disrupt certain features.
The new module No Theme Switch eliminates this risk by locking the currently active WordPress theme.
Once the module is enabled, no user can switch to another theme, including an administrator who would normally have the necessary permissions.
This feature is particularly well-suited for client sites, production sites, and installations managed by multiple people.
A problem directly related to WordPress permissions
No Theme Switch does more than just hide the buttons that let you activate another theme in the admin panel.
The module interacts directly with WordPress's capacity system. When WordPress checks the capacity switch_themes, WPMasterToolKit denies permission.
The lock is therefore intentionally targeted: the user's other permissions are not removed.
An administrator can continue to manage the site as usual based on their permissions, but they can no longer change the active theme while No Theme Switch is enabled.
Pixel Tag Manager: Centralize Your Pixels and Tracking Tags
Pixel Tag Manager is the fourth new Pro module in WPMasterToolKit 2.25.0.
Its goal is to centralize the configuration of the main audience measurement and advertising solutions within WordPress, without having to install multiple small plugins dedicated to each platform.
This first version supports 8 destinations :
- Google Tag Manager; ;
- Google Analytics 4; ;
- Google Ads; ;
- Meta Pixel; ;
- TikTok Pixel; ;
- LinkedIn Insight Tag; ;
- Microsoft Advertising UET; ;
- Pinterest Tag.
Each destination can be enabled independently and configured with the credentials required by the respective platform.
So you can either use Google Tag Manager exclusively or load multiple destinations directly from WPMasterToolKit.
When Google Tag Manager and direct destinations are used together, the module displays a warning to alert you to the possibility of the same tags being loaded twice.
Common Rules for Regulating Tracking
Pixel Tag Manager does more than just inject scripts into the <head> from the website.
The module allows you to determine Under what conditions should tracking actually be initialized?.
In particular, you can exclude administrators, all logged-in users, or certain specific WordPress roles. By default, administrators are excluded.
Tracking can also be limited to the WordPress environment production, which prevents development and staging visits from being sent to analytics and advertising platforms.
The module also avoids initializing its tracking in several contexts where it is not necessary, including the WordPress admin panel, feeds, trackbacks, certain bot requests, and the Customizer preview.
If no active destination is configured correctly, the Pixel Tag Manager frontend runtime simply will not load.
Joint Consent Management
Pixel Tag Manager distinguishes between two categories of consent: Analytics and Advertising.
Each destination can be assigned to one of these categories and an initial state granted or denied can be defined.
A configurable time interval between 0 to 10,000 milliseconds, with a default value of 500 ms, also allows an external consent management solution time to send an update.
However, Pixel Tag Manager does not replace a cookie banner or a CMP. It provides the mechanism that allows its tracking system to take consent status into account.
The module also provides standardized events, validation of data sent to the front end, and a debug mode accessible to administrators with the appropriate permissions manage_options.
Child Theme Generator now better handles WordPress permissions
WPMasterToolKit 2.25.0 also improves the module Child Theme Generator.
This development is particularly consistent with the introduction of No Theme Switch: generating a child theme and activating it are two operations that must properly account for the available permissions.
Child Theme Generator now supports theme-switching capabilities and handles generation actions more reliably.
The module also provides clearer feedback on the status of the generation when the child theme is not active.
This makes it possible to better distinguish between the generation of the child theme and its potential activation, while adhering to the restrictions on changing themes.
A version of WordPress focused on control
With WPMasterToolKit 2.25.0, four new features that previously might have required multiple extensions can now be managed directly from WPMasterToolKit.
Google Font Localization allows you to host the Google Fonts used by the site locally. Media Trash Adds a grace period before files are permanently deleted from the media library. No Theme Switch locks the active theme. Finally, Pixel Tag Manager centralizes eight tracking solutions with common rules for loading and consent.
At the same time, improving Child Theme Generator improves consistency between the creation of a child theme and the WordPress permissions required to activate it.
As always with WPMasterToolKit, these features remain independent: You only activate the modules that your site actually needs.