/* Plugin Name: Auto-Hide Posts Version: 1.0 Plugin URI: http://wiki.wordpress.org/Auto%20shutoff%20comments Description: Auto-close Posts after a cutoff date. This is a modification of the Auto-Close Comments plugin by Scott Hanson. Author: David Ky and whoo Author URI: http://scrabbledabble.com/blog/ */ function autoclose_posts() { global $wpdb; // Set $age_cutoff to the age at which a post should become stale $age_cutoff = '3000 DAY'; $cutoff_date = $wpdb->get_var ("SELECT DATE_ADD(DATE_SUB(CURDATE(), INTERVAL $age_cutoff), INTERVAL 1 DAY)"); // Set post_status to your liking $close_type = 'private'; $wpdb->query ("UPDATE $wpdb->posts SET post_status = '$close_type' WHERE post_date < '$cutoff_date' AND post_status = 'publish' AND post_type = 'post'"); } add_action('publish_post', 'autoclose_posts', 7); add_action('edit_post', 'autoclose_posts', 7); add_action('delete_post', 'autoclose_posts', 7); add_action('comment_post', 'autoclose_posts', 7); add_action('trackback_post', 'autoclose_posts', 7); add_action('pingback_post', 'autoclose_posts', 7); add_action('edit_comment', 'autoclose_posts', 7); add_action('delete_comment', 'autoclose_posts', 7); add_action('template_save', 'autoclose_posts', 7); ?> PHP/MySQL Web Developer - Jobs from BlogStorm Jobs

PHP/MySQL Web Developer

Posted : September 5th, 2008
  • Company Name : Clockwork Marketing Ltd
  • Location : Devon
  • Salary : 18k
Contact InformationJob Description

We are looking for a PHP / MySQL Developer to undertake a 6month contract developing a new Data Management System.

Candidates must have in-depth knowledge of PHP and MySQL on Linux servers. XHTML, Javascript and Ajax skills are also beneficial. Most likely full time, but flexibility can be offered.