Skip to content

Commit d28842c

Browse files
author
Askupa Software
committed
Added comments to functions
1 parent 601d4cd commit d28842c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

bootstrap.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424

2525
if( !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

3442
if( !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 );

0 commit comments

Comments
 (0)