forked from thom4parisot/wp-less
-
Notifications
You must be signed in to change notification settings - Fork 0
oncletom edited this page Nov 24, 2012
·
6 revisions
This is part of the WordPress Action Refererence.
-
wp-less_compiler_construct_preWP-LESS action -
wp-less_compiler_constructWP-LESS filter -
wp-less_initWP-LESS action - …
-
plugin_loadedWordPress action -
after_setup_themeWordPress action -
initWordPress action - …
-
wpWordPress event - …
-
wp_headWordPress action -
wp-less_plugin_process_stylesheetsWP-LESS action duringwp_enqueue_scripts - Then, for each stylesheet:
-
wp-less_stylesheet_constructWP-LESS action -
wp-less_stylesheet_compute_target_pathWP-LESS filter -
wp-less_stylesheet_save_preWP-LESS action (if it has to compile) -
wp-less_stylesheet_saveWP-LESS filter (it it has to compile) -
wp-less_stylesheet_save_postWP-LESS action (it it has to compile)
-
- …
-
wp_print_stylesWordPress action
This workflow means if you have to alter some configuration values, it has to be done before wp priority 999.
It also means if you register stylesheets after wp action, they won’t be handled by the plugin.
You can access to the known instance of WPLessPlugin at any time by doing the following:
$less = WPLessPlugin::getInstance();
// do stuff with its API like:
$less->addVariable('red', '#f00');TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
TBD.
You can access to the known instance of WPLessConfiguration at any time by doing the following:
$config = WPLessPlugin::getInstance()->getConfiguration();
// do stuff with its API like:
$config->setCompilationStrategy('legacy');
$config->getTtl(); // returns 432000 (5 days)TBD.
TBD.
TBD.
TBD.
TBD.