Last active
February 22, 2024 08:12
-
-
Save wpmudev-sls/96e812eb1e0fff3015a8dd9b5de97489 to your computer and use it in GitHub Desktop.
[Forminator Pro] - Fix conflict with Hamela theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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