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”
- How to add a shortcode button to the TinyMCE editor?
- Is there a plugin that provides a stackoverflow style editor for wordpress? [closed]
- How to check if the product is in a certain category on a single-product.php in Woocommerce?
- Plugin upgrading: Widget settings
- Create a table in custom plugin on the activating it?
- How to call plugin path in JS?
- Getting Custom Post Type content from main-site of a Multisite
- Editor not displaying dynamically after clicking on the button
- $current_user var returns NULL
- Quote rotator in the sidebar
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- Very stubborn wp_register_script / add_action vs remove
- remove filter which calls a public static function
- How to submit documentation with plugin
- Why does deactivating a plugin cause error: “You do not have sufficient permissions to access this page”?
- WordPress 3.5 Media Manager – add a button
- Handling jQuery Component Collision
- Plugin/Folder permission issues with Azure
- How to skip woocommerce checkout out page? [closed]
- Using the “Latest posts” feature on a different site
- How do i save plugin-specific info?
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- Prevent a plugin from being automatically activated
- The plugin generated 3 characters of unexpected output during activation
- uninstall.php file in Plugin to clean DB
- How to add a full edit link to front-end editor?
- WooCommerce deleted all my menus, categories, theme, pages [closed]
- ERR_CONTENT_DECODING_FAILED: How to fully delete gzip compression plugins?
- transfer a file from one domain to another via wp
- How to require users to login when not logged in
- TinyMCE Styles Dropdown not adding html tags other than span
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- Run function on plugin activation before plugin is loaded
- Show Sitename on Yoast SEO Title tag [closed]
- Updating options into the wp database performance
- Ajax save data to database on document ready, no data being saved
- Creating author Specific page URL
- I want to know about the plugins that help in while I write code on my Page? [closed]
- How to get specific string/value from an array? php [closed]
- React error #231with Custom Blocks after upgrade to WP 5.5
- Woocomerce add info after order email prouct item
- WordPress super admin login issue. (Automatically logout)
- Background Music WP [closed]
- WordPress failing to update plugins
- Why is it important to check for isset and is_array before checking in_array in this example?
- Upload files to the plugin menu
- Plugins & backup not working correctly on new Digital Ocean server
- Don’t load the theme for a page FROM a plugin EDITED
- Call another page in forms
- WordPress Feed Creator Name Tag Full Name Instead Of First Name
- How to force load a page in plugin?
- Attachments broken after giving WordPress its own directory
- Chat support plugin? [closed]
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- how does ‘init’ /’parse_request’ hook work for wordpress?
- Service status plugin
- Remove Zero Money From Previews Order woocommerce
- Can I edit multiple sites with an online WordPress account?
- Having a problem with rewrite_rules and rewrite_tags – url not rewriting properly and query var missing
- Share login credential with QR code
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wpss_social_addtoany_js’
- Get full URL of WP plugin admin page
- WooCommerce Stripe payment plugin working perfectly in storefront parent theme but not in the child theme
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- Public WP website with one area just for members
- Avoid WordPress header bar when form submission using admin_post in the frontend
- WordPress website dont load CSS, JS and images
- Echo custom admin field into a is_single()
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- Hide ‘add to cart’ button for some products [duplicate]
- Bootstrap carousel – Using shortcode inside enclosing shortcode
- ClassLoader.php issues after moving to a new host
- Error Copying Directory On Plugin Activation
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Options page textarea to populate custom post select field
- Add Flatr button to Sharing option
- Cannot access variables within a widget
- WordPress 3.5 install error
- Advanced Permalinks plugin breaks RSS
- Add meta tags with a plugin?
- WP Job Manger change jobs url (NOT slug)
- How to use ‘Event Manager Shortcodes’ plugin via the php code? [closed]
- Customize Multi-Column Tag Map to fetch specific post-type
- Upload Image to desired directory through plugin
- Fast Tranfering my WordPress site to another server
- Display out of stock products in WooCommerce [closed]
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- Can i have limit posts on a specific category and automatically remove older ones?
- manage_{taxonomy}_custom_column not working
- I want to set a different banner for each product in the woocommerce plugin on my wordpress site
- I want create woocommerec match products columns
- How to be Variables and options must be escaped when echo’d?
- Remove embed url for internal links