bbp_admin_repair_handler()
Handle the processing and feedback of the admin tools page
Description
Source
File: bp-forums/admin/tools.php
function bbp_admin_repair_handler() { if ( ! bbp_is_post_request() ) return; check_admin_referer( 'bbpress-do-counts' ); // Stores messages $messages = array(); wp_cache_flush(); foreach ( (array) bbp_admin_repair_list() as $item ) { if ( isset( $item[2] ) && isset( $_POST[$item[0]] ) && 1 === absint( $_POST[$item[0]] ) && is_callable( $item[2] ) ) { $messages[] = call_user_func( $item[2] ); } } if ( count( $messages ) ) { foreach ( $messages as $message ) { bbp_admin_tools_feedback( $message[1] ); } } }
Changelog
Version | Description |
---|---|
bbPress (r2613) | 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.