11,415 reputation
1347
bio website christopherdavis.me
location Lexington, KY
age 27
visits member for 2 years, 10 months
seen 2 hours ago

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

Connect


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?
Mar
8
answered How can I add extra attribute in the 'Page Attribute' section in wp-admin for pages?
Mar
8
comment How do I list a custom field and custom taxonomies for each result in a loop?
You shouldn't need to use get_the_ID, but it's changed.
Mar
8
revised How do I list a custom field and custom taxonomies for each result in a loop?
added 3 characters in body
Mar
8
comment How do I list a custom field and custom taxonomies for each result in a loop?
Try now. I didn't capitalize the ID property of $post.
Mar
8
revised How do I list a custom field and custom taxonomies for each result in a loop?
Fix a typo!
Mar
8
answered How do I list a custom field and custom taxonomies for each result in a loop?
Mar
7
comment How to create a specific frontend URL (not a Page) from a theme or plugin?
It is what you're looking for. Despite the admin-ajax.php file name, it works everywhere (assuming everything is hooked in correctly).
Mar
1
comment How to grab metabox value in wp_query meta_query key
I don't think you can use an array as a key? I'm not really clear on what you mean by this: "an array with the key with the metaboxes"
Mar
1
answered What is the best way to handle multiple calls to get_template_directory_uri() and similar functions?