Unable to upload wordpress plugins

(1) Make sure you’ve set up proper upload_max_filesize. You can use phpinfo to check / verify. <?php phpinfo(); ?> More info. on phpinfo (2) You may also need to increase your max post size. Look for this line in your php.ini file post_max_size and increase it as well. You need to restart Apache for the … Read more

Any hook for pre-plugin-update -either bulk or single plugin update

Here are two untested ideas: Idea #1: If you want to hook before an instance of the Plugin_Upgrader class is created with: $upgrader = new Plugin_Upgrader( … ) where the upgrades are activated with: $upgrader->upgrade($plugin); // for a single plugin upgrade $upgrader->bulk_upgrade( $plugins ); // for bulk plugins upgrades then you could try: /** * … Read more

Can’t Update, Delete, install Plugin

It is either an issue with your file system or with your mysql database. On some webhosting configurations, WordPress automatic updates fail. In my experience, if it is not file permission, then it is an issue related to file ownership. Try the FTP method. Add the following lines in your wp-config.php define(‘FS_METHOD’, ‘ftpext’); define(‘FTP_USER’, ‘YOUR … Read more

Doubt using $wpbd->get_col for a single column

Try this. Hopefully I’ve interpreted your output correctly. I’d recommend a good read of the $wpdb codex, particularly in relation to the get_col() method – http://codex.wordpress.org/Class_Reference/wpdb#SELECT_a_Column global $wpdb; // You won’t need this unless this code is within a function $query = $wpdb->prepare( ‘SELECT %1$s.guid FROM %1$s’, $wpdb->posts ); $results = $wpdb->get_col($query); $counter = 1; … Read more