Skip to content

Instantly share code, notes, and snippets.

@noeltock
Created October 3, 2012 09:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noeltock/3826136 to your computer and use it in GitHub Desktop.
Save noeltock/3826136 to your computer and use it in GitHub Desktop.
wp-less to style.css
add_filter( 'wp_less_cache_path', 'my_less_cache_path' );
add_filter( 'wp_less_cache_url', 'my_less_cache_url' )
function my_less_cache_path( $path ) {
return get_stylesheet_directory();
}
function my_less_cache_url( $url ) {
return get_stylesheet_directory_uri();
}
@cwulff
Copy link

cwulff commented Mar 4, 2013

Missing a semi-colon on the second add_filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment