Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[General] Fix Can't not find image on formota theme
<?php
/**
* Plugin Name: [General] Fix Can't not find image on formota theme
* Description: [General] Fix Can't not find image on formota theme
* Author: Thobk @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
add_action( 'after_setup_theme', 'wpmudev_remove_filter_upload_dir_on_formota_theme');
function wpmudev_remove_filter_upload_dir_on_formota_theme(){
remove_filter( 'upload_dir', 'haru_ssl_upload_url' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.