How can I designate a comment box in WordPress to use a particular plugin

I have a plugin installed on my wordpress blog that takes the email address and message and creates a new user on my other CMS platform. Problem is this effects all comment boxes. I want to re-work this plugin to check if its on a particular page if so some values would be different. If not then proceed 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&[email protected]&login_password=xxxxx');

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

return true;



Thanks in advance.


Use conditional tags:

Here is how you would test for a certain page:


if ( is_page( '2' ) ) {
    return false;
Tags: Wordpress / API / Plugins

Similar questions

How do i assign particular post for particular page using wordpress?
I have create separated page says "service.php" with following code So the above page now act as separate static page. now i want to assign particular post for this service page in wordpress. Is it possible to do that? Kindly advice on this.
How to show in search results posts with a particular tag in a particular category?
As the home page of my blog I've a static page. There I want to show the navigation of the site. Category1 Category1 Category2 Category2 All the above words are hyperlinks. Now what I need is, when a user clicks on tag1 under subcategory1 in category2, all the posts of category2, in subcategory1 having tag1 shall be returned. is it possible to have...
Hide posts of particular category for everyone except of particular user group or role
I am looking for a plugin which allows to see posts to particular user group (or role) only, post’s names included. I want to hide even a hint of presents of these posts from everyone except of particular user group (or role). I already tried lots of popular plugins with promising descriptions and high rating, but, unfortunately, they don’t meet th...
Can I limit this meta box to a particular page?
I am using a version of this ( meta box script but I want to be able to limit which edit screen a meta box shows. For example, if I only want a meta box to show in the "contact" page edit screen, is that possible?
How to call particular funcion when the check box is checked in plugin options page
I'm new to php and wp plugin development, i just created a simple options page for my test plugin, the options page has only one check box, i don't know how to execute some function when the box is checked, My plugin options page is like this Now i want to remove wp logo in admin bar when the check box is checked using the following code How to do ...
How can I list only sites that use a particular theme or plugin?
I need to search through dozens of WordPress multisite (network enabled) installs for sites that use a particular plugin. How can I list only sites that use a particular theme or plugin, preferably with either WP CLI or a database query?

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.