Hooks & Filters Reference

Get Started

Hooks & Filters Reference

BuddyPress Moderation Pro provides numerous hooks and filters for developers to customize and extend functionality.

Action Hooks

bmpro_after_content_flagged

Fires after content has been flagged by a user.

do_action( 'bmpro_after_content_flagged', $content_id, $content_type, $user_id, $reason );

bmpro_after_content_approved

Fires after flagged content has been approved by admin.

do_action( 'bmpro_after_content_approved', $content_id, $content_type, $admin_id );

bmpro_after_member_suspended

Fires after a member account has been suspended.

do_action( 'bmpro_after_member_suspended', $user_id, $admin_id, $reason );

Filter Hooks

bmpro_report_reasons

Filter the available report reasons.

$reasons = apply_filters( 'bmpro_report_reasons', array(
    'spam' => __( 'Spam', 'buddypress-moderation-pro' ),
    'inappropriate' => __( 'Inappropriate Content', 'buddypress-moderation-pro' ),
    'harassment' => __( 'Harassment', 'buddypress-moderation-pro' ),
) );

bmpro_auto_moderation_threshold

Filter the auto-moderation threshold for specific content types.

$threshold = apply_filters( 'bmpro_auto_moderation_threshold', 3, $content_type );

bmpro_can_user_report

Filter whether a user can report content.

$can_report = apply_filters( 'bmpro_can_user_report', true, $user_id, $content_type );
Last updated: January 28, 2026