Skip to content

Instantly share code, notes, and snippets.

@alpipego
Last active December 19, 2015 11:29
Show Gist options
  • Save alpipego/5947694 to your computer and use it in GitHub Desktop.
Save alpipego/5947694 to your computer and use it in GitHub Desktop.
wp css.php
<?php
$wp_include = '../wp-load.php';
$i = 0; while ( !file_exists( $wp_include ) && $i++ < 10 ) {
$wp_include = "../$wp_include";
}
require_once( $wp_include );
header( 'Content-type: text/css; charset=' . get_option( 'blog_charset' ) );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment