Skip to content

Instantly share code, notes, and snippets.

@wpmudev-sls
Last active February 22, 2024 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpmudev-sls/96e812eb1e0fff3015a8dd9b5de97489 to your computer and use it in GitHub Desktop.
Save wpmudev-sls/96e812eb1e0fff3015a8dd9b5de97489 to your computer and use it in GitHub Desktop.
[Forminator Pro] - Fix conflict with Hamela theme
<?php
/**
* Plugin Name: [Forminator Pro] Fix conflict with hamela theme
* Description: Fix conflict with hamela theme.
* Author: Prashant @ WPMUDEV
* Task: SLS-5778
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
add_action( 'admin_init', 'wpmudev_disable_theme_formi_conflict' );
function wpmudev_disable_theme_formi_conflict() {
remove_filter('wp_kses_allowed_html', 'themesflat_kses_allowed_html', 10, 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment