bp_blogs_update_option_thread_comments_depth( string $oldvalue, string $newvalue )
When updating comment depth, update thread depth 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.
Source Source
File: bp-blogs/bp-blogs-functions.php
function bp_blogs_update_option_thread_comments_depth( $oldvalue, $newvalue ) { global $wpdb; $comments_enabled = get_option( 'thread_comments' ); if ( $comments_enabled ) { bp_blogs_update_blogmeta( $wpdb->blogid, 'thread_comments_depth', $newvalue ); } }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |