How To/What triggers a WordPress auto update?

As of WordPress 4.7.3, auto-updates are triggered whenever the following sequence is successful. All the code is in the file wp-includes/update.php. 1. _maybe_update_core() is called (via the admin_init action). This function is run via the the admin_init action, which executes at the beginning of every admin page before the page is rendered. The update process … Read more

IP address whitelist to update WordPress core and plugins

I would look at finding the IP address of the WordPress website. For example, downloading bbpress manually gives me the link https://downloads.wordpress.org/plugin/bbpress.2.5.8.zip which when using ping in command prompt gives me the IP address of 66.155.40.188 (this matches the subdomain of downloads.wordpress.com) I would whitelist the IPs found by @gmazzap as I found them too, … Read more

$GLOBALS array for WordPress

I’m not sure if all of these are WordPress globals, but I did a quick grep type search of the WordPress files and tried to extract all the globals I could.. This is the list I compiled. It may not be perfect, but should *hopefully* represent a lot of the $GLOBALS keys that WordPress uses … Read more

Why do some core functions get wp_ while others do not? What’s the rule?

This makes not that impressive answer, but – none. get_ is suffix usually means function returns something, the_ that function echoes something. wp_ doesn’t carry technical meaning and inconsistency in naming is from many developers participating and lack of movement to unify (moving forward is considered more important than major cleanups of older stuff to … Read more

Modifying WordPress core files

If you must hack core, consider doing so in a way that makes it extensible for others. Add an Action Hook Nine times out of ten, you could do what it is you wanted if only there was an extra do_action call in a specific file. In that case, add the action, document it, and … Read more

What’s the difference between get_home_path() and ABSPATH?

They should do the same thing, but under certain conditions, may not. First of all note: that the codex entry description is misleading that wp-admin/includes/file.php must be included in context else calling get_home_path() will lead to calling an undefined function. Regarding the codex entry, Description Get the absolute filesystem path to the root of the … Read more