dispatch();` * * You can rebuild all stylesheets at any time with: * `$WPLessPlugin->processStylesheets();` * * Or a specific stylesheet: * `wp_enqueue_style('my_css', 'path/to/my/style.css');` * `$WPLessPlugin->processStylesheet('my_css');` * * = Filters and hooks aren't enough = * * Build your own flavour and manage it the way you want. Simply extends WPLessPlugin and/or WPLessConfiguration. * Dig in the code to see what to configure. I tried to make things customizable without extending classes! */ /* * This will be effective only if the plugin is not activated. * You can then redistribute your theme with this loader fearlessly. */ if (!class_exists('WPLessPlugin')) { require dirname(__FILE__).'/lib/Plugin.class.php'; $WPLessPlugin = WPPluginToolkitPlugin::create('WPLess', __FILE__, 'WPLessPlugin'); // TODO: Start garbage collection after the theme settings saved. //READY and WORKING // add_action('after_setup_theme', array($WPLessPlugin, 'install')); // NOT WORKING //@see http://core.trac.wordpress.org/ticket/14955 // add_action('uninstall_theme', array($WPLessPlugin, 'uninstall')); }