11,936 reputation
1550
bio website christopherdavis.me
location Lexington, KY
age 28
visits member for 3 years, 3 months
seen yesterday

I work as a web developer for Enterprise clients and build web applications with PHP.

Connect


Mar
11
revised Positioning Screen (Contextual) Help Tabs
Better solution
Mar
11
comment Positioning Screen (Contextual) Help Tabs
WP_Screen::$_help_tabs is private. Can't access it directly, unfortunately. See my edit, I did your third suggestion!
Mar
11
revised Positioning Screen (Contextual) Help Tabs
Possible solution.
Mar
11
asked Positioning Screen (Contextual) Help Tabs
Mar
10
comment How to redirect action=register link on the lostpassword page to a different link?
You would just copy and paste the code above into a single PHP file, put in the plugin header (codex.wordpress.org/Writing_a_Plugin#File_Headers), drop the PHP file into your wp-content/plugins directory. Here is the complete thing as a plugin gist.github.com/2012290
Mar
10
comment When should I be using the Transients API?
Another use: caching external HTTP requests. Like hitting the twitter API. Don't do it on every page load, cache the results with a transient.
Mar
10
revised How to redirect action=register link on the lostpassword page to a different link?
added 619 characters in body
Mar
10
comment How to make sense of the active_plugins option_value to enable and disable certain plugins from the database?
Assuming you know the plugin's "slug" (eg. something retrieved with plugin_basename yes. You should take a look at the core functions activate_plugin and deactivate_plugins and see how they work to get an idea how to accomplish what you want here.
Mar
10
answered How to redirect action=register link on the lostpassword page to a different link?
Mar
10
comment Contact Form Security
Just to clarify, nonces work fine for non-logged in users -- they just aren't as secure. Internally the nonce functions do use user ID, but if one isn't used, wp_get_current_user, which will return null if there isn't a user. Meaning every person gets the same nonce. You could improve this, of course, by rolling your own nonce functions that identified different people via a cookie or something.
Mar
10
answered Contact Form Security
Mar
10
answered How to enable wpautop for XMLRPC content
Mar
9
comment How to batch resize images and change image url?
Searching and replacing like that in probably not a good idea. Images filenames beyond the original are stored in a serialized array in postmeta. Search + Replace on the database is likely to break the serialization.
Mar
9
comment Is there a way to use the Wordpress users but without loading the entire Wordpress core?
This is a good idea. One suggestion: You can probably ditch plugin loading and query set up (depending on your use case, of course).
Mar
9
awarded  Revival
Mar
9
comment Add multiple plugin directories
Thanks! Feedback is always welcome. Incorporated the __return_empty_array function!
Mar
9
revised Add multiple plugin directories
Incorporated `__return_empty_array`
Mar
9
revised Add multiple plugin directories
Fixing a few code errors that happen when no additional directories are registered.
Mar
9
answered Add multiple plugin directories
Mar
9
answered How do I update a specific object in an array, in user meta?