-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Functions #17
Comments
Hi! Glad you like this update :-) |
I'll give this a try, I didn't see this page before but tried something similar already... never got it working but hopefully attempt number 2 will work out :) thanks |
This doesn't seem to be working... also in the documentation the example seems wrong if (class_exists(‘WPLessPlugin’){
} shouldn't div.random-size{ be div.random-size{ ? either way I tried didn't work I'm getting nothing rendered out in the css |
The function is getting registered as per dump of the obj WPLessPlugin( VERSION = [0] => [0] => ['random'] => but when calling
nothing gets printed from either statement |
got it working... the function call should be width: random(); I think partially wasn't rendering because an int was returned for width so it was getting stripped |
Yep, the first argument is the less function name, the second argument is the PHP function name. |
Hi there great work and great to see 1.5 coming along... I have the framework bootstraped within my theme... is there any hooks I can get into to do a proper registrer function call to add my own lessphp functions?
Thanks so much (see lessphp example below)
The text was updated successfully, but these errors were encountered: