• Scott Fennell

    (@scofennellgmailcom)


    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;
    	}
    }
    • This topic was modified 7 years, 3 months ago by Scott Fennell.
  • The topic ‘Conflicts with MU ( AKA Must Use ) Plugins’ is closed to new replies.