In detail there’s the constant CUSTOM_TAGS that allowes defining $allowedposttags, $allowedtags, $allowedentitynames.
Then you can simply set CUSTOM_TAGS to true and define the globals in a function hooked before kses gets included.
The first available hook to fire an action that defines $allowedposttags would be muplugins_loaded, but I don’t know if kses is loaded before or after it.
// Set custom tags to override $allowedposttags, $allowedtags, $allowedentitynames
if ( ! defined( 'CUSTOM_TAGS' ) )
define( 'CUSTOM_TAGS', true );
You also got the wp_kses_hook() that contains a self explanatory filter:
apply_filters('pre_kses', $string, $allowed_html, $allowed_protocols);
Related Posts:
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- DOMAIN_CURRENT_SITE constant being regularly overridden [closed]
- Configuring Propel to Work with Multisite
- automatic plugin install availability: server configuration
- Default plugin config to override wp_options?
- XML Sitemap Generator and 404 problem
- Enable plugins that are “not supported”
- Disable email notification after change of password
- Proper Way to Modify Plugin
- Hide prices and checkout functionality in woocommerce
- Alter how often WordPress Auto-Updates Plugins
- Get a list of all WordPress.org Plugins?
- Schedule WordPress Auto-Updates to only run during business hours
- How to get a variable number of posts per post type on the main loop?
- My custom made plugin has “a new version available” which links to unrelated plugin
- How do I make my plugin load before the headers are output so I can redirect wordpress?
- Sell one unique item with Woocommerce? [closed]
- Make thumbnails in woocommerce replace the main image instead of opening fancybox
- Run WP-CLI using PHP
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Difference between deactivating, uninstalling, and deleting plugins
- Why can I not use a class constant as text domain?
- Function to Set Product type in Woocommerce [closed]
- Filter Hook on plugin update
- Generic plugin (de)activation hook?
- Is the WordPress HTTPS Plugin Still Safe To Use? [closed]
- How to fetch serialized data from wordpress options
- Deactivate plugins using Migrate DB’s find and replace options
- Trying to get logged-in user data inside php class
- Calling function from within functions.php returns unwanted value
- How to prefix `attachment` permalinks with `attachment`?
- plugin get value from admin panel page
- WordPress network: set themes and plugins for new blog
- Advanced Custom Fields into functions.php
- How do I register a stylesheet inside a WordPress widget?
- How can I get a list of plugins and which blogs are using them?
- How to remove an Ajax action
- WordPress Plugin Boilerplate – add_action hook in static “activate” function
- add function to saving change on Options Pages
- List users except current user using wp_dropdown_user? [closed]
- How WordPress autosave can save plugin fields?
- Opendir and WordPress Path
- Has anyone used require.js for handling plugin scripts?
- Edits to plugin not taking effect
- Multisite Backup Plugin [closed]
- Custom Text Under Navigation Links
- How do I know which plugin uses the most resource?
- Set a category for a page
- How to redirect a Custom Google Search to a wordpress page/template?
- Using ACF to display data on all pages
- Why is wp-cron only executing on page visit?
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- Shortcode is not working in homepage page template (custom front page)
- wp_authenticate but not logged in
- WordPress Automatic Plugin Update Renames Plugin Directory
- Prevent WordPress plugin from connecting to its server
- RW Meta Box ,Problem setting post title
- HTML in WooCommerce settings
- When to call add_filter
- Create a list-style post of popular posts for the week?
- Redirecting to home page after login as custom role WordPress
- Only allowing some email addresses to create an account
- Where (or when) should I register a new taxonomy?
- Widget with same content across several websites
- Date calculations from 2 custom fields
- WordPress plugin compatibility explaination when wordpress releases its new version (theoretical)
- Easiest way to add dropdown to a page
- WPBakery JS composer unused css [closed]
- DROP TABLE with uninstall hook not working
- How to save generated JWT token to cookies on login?
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- How to enable specific plugin only based around shop manager role?
- Fixing WordPress’s Bug (failed to send buffer of zlib output compression) results in “White Screen of Death”
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- how to oauth1 Wp plug-in revoke/reset.?
- Is there any way to use google input tool or any other language keyboard with WordPress [closed]
- How to replace wordpress default text editor (TinyMCE) with a custom one.
- Consolidate plugin functionality into a theme
- Why can’t I access my Intranet LDAPS with NADI?
- qTranslate remove default directory from link
- WordPress adding a menu page when activating a plugin
- How to load wp_editor via AJAX
- Setup page on first login on multisite
- Custom User meta field display
- Ajax button “Load more” is not loading correct language version posts for logged out users
- WordPress REST API Visual Composer Shortcodes
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How to update changes to multiple sites at the same time
- Why am I getting an error when requiring a file in my plugin?
- restore backup full content or just specific folders
- WooCommerce REST API aborts connection [closed]
- Plugin that supports the purchase and installation of other plugins?
- No Google Analytics code rendered in the header?
- Redirect OLD/Path to NEWURL/Path
- How can I use the zip of my plugin in another website?
- Executing ACF field as a shortcode
- Cron Job not working
- Create custom Header and Footer for a page that uses diffrent theme then the rest of the website
- Elementor Form : client side javascript validation
- How to prevent WP All Export from wrapping XML nodes in CDATA? [closed]