![]() |
Wordpress help please!
Two questions ....
1) What's the best wordpress stats plug-in at the moment? I'm mostly after low server load with this plugin. 2) Is there a way for a wordpress install to check on uploaded images and refuse ones that are below a sertain size? Cheers. |
1. https://en-ca.wordpress.org/plugins/...for-wordpress/
they have a pro version too. 2. you can use filters to limit the size, depends if you want dimensions, or filesize which is it you want for #2? |
here is both methods
Code:
add_filter('wp_handle_upload_prefilter','_limit_image_dimensions'); |
cheers, I've already installed that google analytics for wordpress, I saw how many d/ls it had and thought it worth a try.
the code, which file should it go in? |
your themes functions.php file
|
Thanks, unfortunately, it didn't work. I've a feeling that there is already code in the functions code that does this but is set very low, maybe but php is dutch to me.
|
Quote:
zip it up and email me it. |
bump for help on WP, maybe BabeTerminal can help, he´s not much good for anything, but who knows...
:2 cents: |
Quote:
|
All times are GMT -7. The time now is 10:05 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123