Tag Info

Hot answers tagged

2

Look at the function wp_delete_comment(). It fires an action before the comment is deleted: /** * Fires immediately before a comment is deleted from the database. * * @since 1.2.0 * * @param int $comment_id The comment ID. */ do_action( 'delete_comment', $comment_id ); … and one after deletion: /** * Fires immediately after a comment is deleted ...


1

EXPLANATION As mentioned in my update above, to retrieve the ID of a thumbnail the get_post_meta function can be used without any additional DB overhead. The 'normal' way to get the url to a thumbnail id is with wp_get_attachment_image_src or similar functions, but those do not accept an array of IDs. What i noticed using wp_get_attachment_image_src was ...


1

The way that I backup our site is two-fold. Via our web host (rackspace) and manually every time I write any code for the site. DISCLAIMER: this is just what I do by habit, I don't claim it's the best or only way to do it. Just sharing. Firstly your provider may have an automated way to create a server image schedule. Look into your server settings on your ...


1

I setup something similar. Using IIS - look into writing a .bat file which fires off a php shell script to do whatever it is you need to accomplish. once you have that bat file working, setup a "scheduled task" in IIS http://technet.microsoft.com/en-us/library/cc721871.aspx if you are on a linux system, then use crontab ...


1

@IlmarsL: thanks! I really did not think of that. I had the plugin Query Monitor enabled and this was the problem... Turning Query Monitor off solved the problem and memory did no more longer increase.


1

So I made it happen :-) There is one thing that I didn't really like to do but for the time being there is no alternative: The CronJob from the server This PHP script runs in a single (no template) file: $xmlData = file_get_contents(get_bloginfo('template_directory').'/import/external_db.xml'); // read XML data string $xml = ...


1

Check all credentials in wp-config.php. And don't forget about table prefix.



Only top voted, non community-wiki answers of a minimum length are eligible