bp_blogs_update_option_comment_moderation( string $oldvalue, string $newvalue )

When updating comment moderation, mirror value in blogmeta table.


Description Description


Parameters Parameters

$oldvalue

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

$newvalue

(Required) Value to change meta to.


Top ↑

Source 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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.