File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 2424
2525if ( !function_exists ('wp_dynamic_css_enqueue ' ) )
2626{
27+ /**
28+ * Enqueue a dynamic stylesheet
29+ *
30+ * This will print the compiled version of the stylesheet to the document's
31+ * <head> section.
32+ *
33+ * @param string $path The absolute path to the dynamic CSS file
34+ */
2735 function wp_dynamic_css_enqueue ( $ path )
2836 {
2937 $ dcss = DynamicCSSRenderer::get_instance ();
@@ -33,6 +41,17 @@ function wp_dynamic_css_enqueue( $path )
3341
3442if ( !function_exists ('wp_dynamic_css_set_callback ' ) )
3543{
44+ /**
45+ * Set the value retrieval callback function
46+ *
47+ * Set a callback function that will be used to get the values of the
48+ * variables when the dynamic CSS file is compiled. The function accepts 1
49+ * parameter which is the name of the variable, without the $ sign
50+ *
51+ * @param string|array $callback A callback (or "callable" as of PHP 5.4)
52+ * can either be a reference to a function name or method within an
53+ * class/object.
54+ */
3655 function wp_dynamic_css_set_callback ( $ callback )
3756 {
3857 add_filter ( 'wp_dynamic_css_get_variable_value ' , $ callback );
You can’t perform that action at this time.
0 commit comments