2,442 reputation
1134
bio website blog.ashfame.com
location Delhi, India
age 25
visits member for 4 years, 1 month
seen Dec 20 at 16:18

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 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.
Apr
10
comment Remote login with only the username not working
I would like to know how you are planning to secure this communication without a password. If you don't even have a password, any communication even HTTPS won't help. So post a update here when you figure this out?
Apr
9
comment Programmatically add widgets to sidebars
Monitor the action parameter of ajax call that is made when a widget is added, and then find the code related to that action ajax hook and see how its done in core. Simple! ;)
Apr
9
comment How to remove these fields from the 'Profile' section?
+1 because as far as I can recall removing fields via PHP also stops WordPress from creating blank entries in the usermeta table.
Apr
9
comment Remote login with only the username not working
You are actually making the server on receiving end vulnerable like this, hope this is just an experiment. Ideally you should use XMLRPC API to communicate with other WordPress installs. Write more XMLRPC methods if you need more than the ones available and you are good to go :-)