bp_blogs_update_option_close_comments_for_old_posts( string $oldvalue, string $newvalue )

Update “Close comments for old posts” option in BuddyPress blogmeta table.

Parameters Parameters


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


(string) (Required) Value to change meta to.

Source Source

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

function bp_blogs_update_option_close_comments_for_old_posts( $oldvalue, $newvalue ) {
	global $wpdb;

	bp_blogs_update_blogmeta( $wpdb->blogid, 'close_comments_for_old_posts', $newvalue );

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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