Where to access the available plugin/WordPress updates?

Plugin update data is cached in the update_plugins site transient with available updates under the response property. $data = get_site_transient( ‘update_plugins’ ); var_dump( $data->response ); Response looks a bit like: array(1) { [“wordpress-seo/wp-seo.php”]=> object(stdClass)#1873 (11) { [“id”]=> string(27) “w.org/plugins/wordpress-seo” [“slug”]=> string(13) “wordpress-seo” [“plugin”]=> string(24) “wordpress-seo/wp-seo.php” [“new_version”]=> string(5) “5.5.1” [“url”]=> string(44) “https://wordpress.org/plugins/wordpress-seo/” [“package”]=> string(62) “https://downloads.wordpress.org/plugin/wordpress-seo.5.5.1.zip” [“icons”]=> … Read more

Worpdress update another update is currently in progress

In my case the problem was caused by bad import of MySQL tables in phpMyAdmin. (I exported databases instead of only one database’s content. While importing MySQL errored with “Cannot create DB” but created the tables.) Testing INSERT INTO wp_options ( option_name, option_value, autoload ) VALUES (‘core_updater.lock’, 1592768373, ‘no’) (thanks @Rup) said I have a … Read more

Apply a tag to every images ‘Link Rel’

You can create a content_filter that will update on the fly meaning that you don’t have to update all previous pictures and it will be the default so you don’t have to worry about your authors. something like this: function autoadd_rel_prettyPhoto($content) { global $post; $pattern = “/(<a(?![^>]*?rel=[‘\”]prettyPhoto.*)[^>]*?href=[‘\”][^’\”]+?\.(?:bmp|gif|jpg|jpeg|png)[‘\”][^\>]*)>/i”; $replacement=”$1 rel=”prettyPhoto[“.$post->ID.’]”>’; $content = preg_replace($pattern, $replacement, $content); return … Read more

Is there a way to hook into the update-core page for custom messages?

There is an action, ‘core_upgrade_preamble’, which can be added to output anything you would like at the bottom of the upgrade-core page. For example, try: add_action(‘core_upgrade_preamble’, ‘add_custom_upgrade_core_message’); function add_custom_upgrade_core_message(){ echo “<p>HI THERE</p>”; } That should work to meet your needs.

How to display user’s nickname by default instead of username

Instead of wp_create_user, use wp_insert_user. So you will be able to set extra variables like nickname, display_name separately than the default value. For your case, you can code like this: $args = array ( ‘user_login’ => $user_name, ‘user_pass’ => $random_password, //send as plain text password string ‘user_email’ => $user_email, ‘nickname’ => $user_nickName, ‘display_name’ => $user_nickName … Read more

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