imagemoderationapi
Home
Industries
E-commerce Social Media Dating Gaming Healthcare
Use Cases
User Generated Content Profile Verification Marketplace Listings Kids Apps Live Streaming
Detection
NSFW Detection Violence Detection Deepfake Detection Face Detection AI Image Detection
Threats
CSAM Nudity Violence Deepfakes Harassment
SDKs
Python Node.js JavaScript PHP Go
Platforms
WordPress Shopify Discord AWS S3 Firebase
Resources
Pricing Login Compliance Glossary Regions
Try Image Moderation

WordPress Plugin

Protect your WordPress site with AI-powered image moderation. Our plugin automatically screens media library uploads, comment attachments, form submissions, and BuddyPress content.

Download Plugin
0
Active installations
0
Detection accuracy
0
WordPress.org rating
0
Installation simplicity

Complete WordPress Protection

WordPress powers over 40% of the web, and many sites accept user-uploaded images. Whether you're running a community blog, membership site, forum, or marketplace, inappropriate images can damage your reputation and expose you to legal risks.

Our WordPress plugin integrates directly with WordPress hooks to moderate images at every upload point: the media library, comment attachments, front-end forms, BuddyPress profiles, and WooCommerce submissions.

Media Library Screening

Automatically moderate all images uploaded to the WordPress media library, including drag-and-drop uploads.

Comment Image Moderation

Screen images attached to comments before they're published, preventing inappropriate user content.

Form Upload Screening

Integrate with Contact Form 7, Gravity Forms, WPForms, and other popular form plugins.

BuddyPress Integration

Moderate profile photos, activity uploads, and group images on BuddyPress community sites.

WooCommerce Support

Screen product images, vendor uploads, and customer review photos in WooCommerce stores.

Multisite Compatible

Network-wide moderation for WordPress multisite installations with centralized settings.

WordPress Hook Integration

Our plugin uses WordPress hooks to intercept uploads at the right moment.

// Example: Using the moderation API in your WordPress theme/plugin

// Hook into media upload
add_filter('wp_handle_upload', 'moderate_uploaded_image');

function moderate_uploaded_image($file) {
    // Only check images
    if (strpos($file['type'], 'image') === false) {
        return $file;
    }

    // Call moderation API
    $response = wp_remote_post('https://api.imagemoderationapi.com/v1/moderate', [
        'headers' => [
            'Authorization' => 'Bearer ' . MODERATION_API_KEY,
            'Content-Type' => 'application/json'
        ],
        'body' => json_encode([
            'image_url' => $file['url'],
            'models' => ['nsfw', 'violence']
        ])
    ]);

    $result = json_decode(wp_remote_retrieve_body($response), true);

    // Block upload if NSFW detected
    if ($result['nsfw']['score'] > 0.8) {
        wp_delete_file($file['file']);
        $file['error'] = 'This image violates our content policy.';
    }

    return $file;
}

WordPress Plugin FAQ

How do I install the plugin?

Search for "Image Moderation API" in Plugins > Add New, or download from WordPress.org and upload manually. Activate and enter your API key.

Does it work with page builders?

Yes. The plugin works with Elementor, Divi, Beaver Builder, and other page builders since it hooks into WordPress core upload functions.

What happens to flagged images?

You can configure actions: block upload entirely, save to a quarantine folder for review, or allow but flag in the database.

Does it affect upload speed?

Moderation typically adds 50-200ms to uploads. For better UX, enable async mode to moderate after upload completes.

Protect Your WordPress Site

Free plugin with free tier API access. Install in minutes.

Download Plugin