bp_media_import_status_request()
AJAX function for media import status
Description
Source
File: bp-media/bp-media-functions.php
function bp_media_import_status_request() { $import_status = get_option( 'bp_media_import_status' ); $total_media = get_option( 'bp_media_import_total_media', 0 ); $total_albums = get_option( 'bp_media_import_total_albums', 0 ); $albums_done = get_option( 'bp_media_import_albums_done', 0 ); $media_done = get_option( 'bp_media_import_media_done', 0 ); wp_send_json_success( array( 'total_media' => $total_media, 'total_albums' => $total_albums, 'albums_done' => $albums_done, 'media_done' => $media_done, 'import_status' => $import_status, 'success_msg' => __( 'BuddyBoss Media data update is complete! Any previously uploaded member photos should display in their profiles now.', 'buddyboss' ), 'error_msg' => __( 'BuddyBoss Media data update is failing!', 'buddyboss' ), ) ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.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.