bp_blogs_update_option_comment_moderation( string $oldvalue, string $newvalue )

When updating comment moderation, mirror value in blogmeta table.

Description

Parameters

$oldvalue

(Required) Value before save. Passed by do_action() but unused here.

$newvalue

(Required) Value to change meta to.

Source

File: bp-blogs/bp-blogs-functions.php

function bp_blogs_update_option_comment_moderation( $oldvalue, $newvalue ) {
	bp_blogs_update_blogmeta( $GLOBALS['wpdb']->blogid, 'comment_moderation', $newvalue );
}

Changelog

Changelog
Version Description
BuddyPress 3.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.