I've got a wordpress plugin placed on my wordpress blog that can take the e-mail address and message and produces a brand new user on my small other Content management systems platform. Issue is this effects all comment boxes. I wish to re-work this wordpress plugin to see if its on the particular page if that's the case some values could be different. Otherwise start like usual.

function ifcj_createUser_SFI($comment_id) {

# determine commenters email
global $wpdb;
$sql = "SELECT comment_author_email FROM $wpdb->comments WHERE comment_ID = $comment_id";

$userEmail = $wpdb->get_var($sql);

if ( $userEmail == NULL ) {
    return false;

# pull in class file
require( ABSPATH . 'class.convio_api.php');

# create instance and connection with convio, ALWAYS REQUIRED
$c = new ConvioAPI('site_id=xxx&api_key=xxxxxx&login_name=xxx@xxx.org&login_password=xxxxx');

# add user to groups/interests (this can be done when creating the user also)

return true;



Thanks ahead of time.

Use conditional tags: http://codex.wordpress.org/Conditional_Tags

This is how you'd test for any certain page: http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page


if ( is_page( '2' ) ) {
    return false;