1,517 reputation
517
bio website cookspin.com
location Sao Paulo, Brazil
age 31
visits member for 2 years
seen 4 hours ago
stats profile views 38

Occasional WP developer. Co-founder of Cookspin.


1d
comment Save custom value to main content of post
Glad it helped :)
1d
comment Save custom value to main content of post
Plus what @StephenHarris said; always with the sharper eye :)
1d
comment Save custom value to main content of post
He's already hooking to an action inside wp_insert_post. Calling this function within his existing logic can cause an infinite loop. You should clarify what you intend for him to do.
1d
answered Save custom value to main content of post
2d
awarded  Yearling
Apr
20
awarded  Informed
Apr
20
comment How can I clear the theme mod settings?
Also, keep in mind that some themes (i.e. Twenty Eleven) use another row on the database called {$theme_name}_theme_options, so you'll need to delete that too.
Apr
4
comment Approve comment hook?
@user9909 just tested it running 3.5.1 and it works. Start with simpler code (error_log() in my case) and debug from there, perhaps? Using wp_mail() means additional places where things can go wrong, including many which have nothing to do with WP.
Apr
4
awarded  Enlightened
Apr
4
awarded  Nice Answer
Mar
30
comment How can I get an XML export of my 1K+ posts WordPress instance?
It would really be much easier to just configure PHP not to time out after 90 seconds. Or upgrade your db server to get the job done in 90 seconds. Depending on where you're hosting it, both things can be much easier than what you're proposing.
Mar
26
awarded  Revival
Feb
21
comment Make Google index the entire post if it is separated into several pages
Seems like you've found the answer. Care to format it as such and accepting it? I think a lot of people will benefit from this.
Feb
21
answered Ensuring sticky posts are retrieved first (without using two queries)?
Feb
20
comment Uninstall script for a plugin in Multisite
1) I meant for debugging purposes -- if someone developing a plugin is wondering why his uninstall.php file isn't being loaded on deactivation, this is the first scenario to consider; 2) That's not really what I meant; I think the problem is on WP's end (i.e. it's checking the wrong table to see which plugins have uninstall routines), but I might be wrong.
Feb
19
comment Uninstall script for a plugin in Multisite
Have you tested this thoroughly? Looking at the source code, it would seem the uninstall.php file within a plugin would only be called if 1) it existed prior to the plugins activation (if so, the plugin name would be stored within the blog's option table); 2) when calling get_option('uninstall_plugins') actually yields that specific plugin. It doesn't seem to work on Multisite because network-wide plugin info is stored in the sitemeta table, instead.
Feb
17
comment Cache previous versions of website?
See updates on answer. We can go so far when discussing templating, though.
Feb
17
revised Cache previous versions of website?
Added more info based on comments
Feb
17
answered Cache previous versions of website?
Feb
15
comment Wordpress translation loading english file
Have you tried doing a var_dump() on the $path array? English is the fallback in many situations (two of them in your own function), so there are many ways this could be going wrong. More debug information would be great.