Query users by capability – uninstall/deactivate callback

It was actually much easier than I originally thought – just doing a WP_User_Query for a meta value (meta arrays are supported as well, like for the other query classes). public function on_deactivate() { $meta_key = ‘tools_page_tsi_per_page’; $query = new WP_User_Query( array( ‘meta_key’ => $meta_key ) ); if ( empty( $query->results ) ) return; foreach … Read more

Downgrading a WP3.3.1 Network Install

Something along these lines: Create a new WordPress install in the place you want your install to be Put it in maintenance mode migrate the content Log in and adjust options accordingly To migrate the content you have two choices: 1 – Copy the data from the tables of the blog/site that you want to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)