__FILE__ in WordPress plugins

It should work (and does when I test on a new WP install) with __FILE__, though it’s not recommended because it exposes the server path and is just generally an ugly URL. You can replace it with a unique identifier like ‘sb-generator-options’ or whatever really, as long as it’s unique. the important part is the … Read more

File permissions for wp-minify plugin

toscho is right. So you could probably give a try to another plugin. The Better WordPress Minify. This one also uses a folder inside the plugin’s folder, BUT. You can change the folder and place it elsewhere. Please have a look at Advanced Customization. screenshot http://s.wordpress.org/extend/plugins/bwp-minify/screenshot-1.gif We have been using it without a problem.

Get value of a key from a Plugin Serialized array

Just found about plugin_api and using it, the above can be achieved with just below code: /** If plugins_api isn’t available, load the file that holds the function */ if ( ! function_exists( ‘plugins_api’ ) ) require_once( ABSPATH . ‘wp-admin/includes/plugin-install.php’ ); /** Prepare our query */ $call_api = plugins_api( ‘plugin_information’, array( ‘slug’ => ‘i-recommend-this’ ) … Read more