Some code for you…
-
Thanks for the plugin!
Some new code for you: https://david.dw-perspective.org.uk/tmp/js-css-include-manager.1.3.0.zip
I’ve added a new field – making the CSS conditional. The conditions I’ve added are (using the WP functions):
– is_user_logged_in()
– current_user_can(‘manage_options’) – which is the best way to detect an admin
– is_front_page()That was all I needed you could add more. Even better would be multiple conditions, or allowing the user to enter their own PHP directly – but I don’t need that.
I also improved some English (my mother tongue). I did not improve everything. I could not understand these sentences at all:
This plug-in is a will clean the file management.
You can only manage the screen. You can also only site the screen.You should also use nonces.
Many thanks,
Davidhttps://www.ads-software.com/extend/plugins/js-css-include-manager/
- The topic ‘Some code for you…’ is closed to new replies.