WordPress hack: Insert comments programatically

The following code can be pasted anywhere on your theme files.
Once this code is executed, it will add a new comment into WordPress database. The returned value is the comment ID, or 0 if a problem happenned.

$data = array(
	'comment_post_ID' => 1,
	'comment_author' => 'admin',
	'comment_author_email' => '[email protected]',
	'comment_author_url' => 'http://www.catswhocode.com',
	'comment_content' => 'Lorem ipsum dolor sit amet...',
	'comment_author_IP' => '127.0.0.1',
	'comment_agent' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3',
	'comment_date' => date('Y-m-d H:i:s'),
	'comment_date_gmt' => date('Y-m-d H:i:s'),
	'comment_approved' => 1,
);

$comment_id = wp_insert_comment($data);

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!

WordPress hack: Insert comments programatically

WordPress site fix, FACEBOOK Social plugins, new ad space by media7london

We’re looking for someone to fully implement facebook social plugins on our site www.homovision.tv We currently have them working but a number of functions don’t seem to work on the site. Secondly -… (Budget: $30-250, Jobs: Format & Layout, Templates, Website Design, WordPress)

Meta keywords and descriptions needed for 550 products by kjt1985

We currently have 554 products in the admin section of our website www.completegyms.com We require someone to input the meta keywords and descriptions for all the products,directly into the admin section of the site… (Budget: $30-250, Jobs: Copywriting, Data Entry, Magento, Product Descriptions, SEO)

Introduction to Digital Photography: Part 1

In this three part series of videos, we are going to look at the fundamentals of photography. These videos will endevour not only to explain what various camera functions do, but also illustrate them clearly and explain how we can use them creatively in a real world situation.


Video Outline

Here’s a quick look at what to expect in the first instalment of this series. If you’re relatively new to photography, or just want to hone your basic skills once again, it should offer a brilliant place to start.

We’ll be exploring the basic functions of a camera (shutter speed, aperture, etc), explaining them in real-life examples, and taking a look at how to minimise camera shake.

  • Why Use Manual Settings?
  • Shutter Speeds Explained
  • Shutter Speed Demonstrated (Visual Effects Of Shutter Speed)
  • Creative Use Of Shutter Speeds Demonstrated
  • Aperture Explained
  • Aperture Demonstrated
  • Creative Use Of Aperture (Depth of Field Demonstrated)
  • Shutter Speed and Aperture Together
  • Camera Shake Explained & Guide To Avoiding It

Watch the Video

landing page design (russian only) by astar82

i need a landing page design to collect leads my company website is aldetrans.com the landing page should include contact form with 4 fields : Name , Email , phone number and description. the winner will complitly design landing page including copywriting… (Budget: $250-750, Jobs: Copywriting, Graphic Design, HTML, Photoshop Design)

Foreclosure Articles Required Urgent 1 by jobgiver001

I need around 100 foreclosure articles of 500 words.All articles should be about latest foreclosure news or articles.I need 5 articles a day including sunday and payment would be everyday after checking for copyscape and quality… (Budget: $30-250, Jobs: Article Rewriting, Articles, Copywriting, Editing, Ghostwriting)