2,542 reputation
1136
bio website blog.ashfame.com
location Delhi, India
age 26
visits member for 4 years, 9 months
seen Jul 30 at 15:24

Developer + Entrepreneur + Opensource fanatic!

Working as Dragon Monk for AnattaDesign. We tackle user experience problems by creating products that fix them. We created Awesome Checkout and My Abandoned Carts.

You can get in touch via Twitter or check out my Github


May
6
comment Add a Save Button to Custom Meta Box
See how the default submit button does, and mimic that?
May
6
comment How to set the default value of a option in a theme?
IMO, wp_parse_args() is still better because in using the default parameter of get_option(), that kicks in only when get_option() doesn't return anything from database. It won't be useful in the case when you have a subset of options filled in and wants to fill the missing ones from the defaults, like when you are upgrading your plugin, and all existing users of that plugin doesn't have the newly added setting in their database yet. We would want the default to kick in for that.
May
6
answered How to remove specific categories from posts?
May
6
answered Can't get CSS Into the Head via add_action
May
6
comment How to get Post ID with the Add Filter Function
get_the_ID() is still meant to be used inside the loop only. It might work for you well on single pages but a fully reliable way is to access global $post variable only like I said in my answer.
May
5
answered Rename a current used post type
May
5
answered How do you allow plugins to be updated using the GUI without breaking your subversion repository?
May
5
awarded  Autobiographer
May
5
answered wp_login_form redirect
May
5
comment Overide a function that is inside a plugin
+1 And I would fork the code and send the code back to plugin author to see if they are willing to include it in the main plugin code. This way everyone wins and I am least bothered.
May
5
answered How to set the default value of a option in a theme?
May
5
answered How to get Post ID with the Add Filter Function
May
3
comment is wpdb->replace() already sanitized?
yeah a valid use case. About replace, if you are actually firing your functions when a post is created, then you won't ever have to use replace. No? ;-)
May
3
comment Creating a user's own folder on user registration
Give us more on your intent & we will suggest you a good implementation
May
3
comment is wpdb->replace() already sanitized?
yeah just keep them to minimum. redudancy comes with the extra overhead of keeping multiple copies in sync. Best would be to just store the post ID and nothing else. And even then if you are going to, just update the row. I don't see the need of replacing the row.
May
3
answered Using shortcodes to communicate my page design
May
3
comment is wpdb->replace() already sanitized?
Just use a post ID in your custom table, no need to keep the data you already have in another table. This is just redundancy.
May
3
answered Wordpress Image uploads plugin needed
May
3
answered is wpdb->replace() already sanitized?
May
3
comment Can a plugin deactivate itself?
Technically speaking, it can but I don't see why someone would build this functionality.