Conflicts with MU ( AKA Must Use ) Plugins
-
Hello, I find that in order to load JS/CSS from plugins in the wp-content/mu-plugins folder, I have to edit this function thusly:
// fixes the plugins_url function domain_mapping_plugins_uri( $full_url, $path=NULL, $plugin=NULL ) { if( stristr( $full_url, 'wp-content/mu-plugins' ) ) { $mapped_url = get_option( 'siteurl' ) . substr( $full_url, stripos( $full_url, 'wp-content/mu-plugins' ) - 1 ); return $mapped_url; } else { $mapped_url = get_option( 'siteurl' ) . substr( $full_url, stripos( $full_url, 'wp-content/plugins' ) - 1 ); return $mapped_url; } }
- The topic ‘Conflicts with MU ( AKA Must Use ) Plugins’ is closed to new replies.